def my_function(x):
    if x == 0:
        # raise(Exception)
        return 100
    return x*2

class MyClass():

    counter = 0

    def __init__(self):
        self.id = self.counter
        self.counter += 1

    def get_id(self):
        return self.id

    def unstable_method(self):
        pass