def lookup(node, name):
if isinstance(<EOL>node, (astroid.List, astroid.Tuple, astroid.Const, astroid.Dict, astroid.Set)<EOL>):<EOL><INDENT>return _builtin_lookup(node, name)<EOL><DEDENT>if isinstance(node, astroid.Instance):<EOL><INDENT>return _lookup_in_mro(node, name)<EOL><DEDENT>if isinstance(node, astroid.ClassDef):<EOL><INDENT>return _class_lookup(node, name)<EOL><DEDENT>raise exceptions.AttributeInferenceError(attribute=name, target=node)<EOL>
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.