def get_constructor(self):
    for method in self.methods:
      if method.name == '__init__':
        return method
    return None
Get the Method object for the constructor of the class.
dataset/ETHPy150Open hiranya911/rest-coder/python-lib/codegen_core.py/Class.get_constructor