code: def is_constructor(node):
      
      return (
          node.parent
          and isinstance(node.parent.scope(), astroid.nodes.ClassDef)
          and node.name == "__init__"
      )
docs: Check if the function is a constructor.
  
      :param node: The node to check.
      :type node: astroid.nodes.FunctionDef
  
      :returns: True if the function is a contructor, False otherwise.
      :rtype: bool