def imported_member(self, node, member, name):
<EOL>try:<EOL><INDENT>modname = getattr(member, "<STR_LIT>", None)<EOL><DEDENT>except TypeError:<EOL><INDENT>modname = None<EOL><DEDENT>if modname is None:<EOL><INDENT>if name in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>modname = builtins.__name__<EOL><DEDENT>else:<EOL><INDENT>attach_dummy_node(node, name, member)<EOL>return True<EOL><DEDENT><DEDENT>real_name = {"<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>"}.get(modname, modname)<EOL>if real_name != self._module.__name__:<EOL><INDENT>try:<EOL><INDENT>getattr(sys.modules[modname], name)<EOL><DEDENT>except (KeyError, AttributeError):<EOL><INDENT>attach_dummy_node(node, name, member)<EOL><DEDENT>else:<EOL><INDENT>attach_import_node(node, modname, name)<EOL><DEDENT>return True<EOL><DEDENT>return False<EOL>
verify this is not an imported class or handle it