code: def lookup(node, name):
      
      if isinstance(
          node, (astroid.List, astroid.Tuple, astroid.Const, astroid.Dict, astroid.Set)
      ):
          return _builtin_lookup(node, name)
      if isinstance(node, astroid.Instance):
          return _lookup_in_mro(node, name)
      if isinstance(node, astroid.ClassDef):
          return _class_lookup(node, name)
  
      raise exceptions.AttributeInferenceError(attribute=name, target=node)
docs: Lookup the given special method name in the given *node*
  
      If the special method was found, then a list of attributes
      will be returned. Otherwise, `astroid.AttributeInferenceError`
      is going to be raised.