code: def imported_member(self, node, member, name):
          
          # /!\ some classes like ExtensionClass doesn't have a __module__
          # attribute ! Also, this may trigger an exception on badly built module
          # (see http://www.logilab.org/ticket/57299 for instance)
          try:
              modname = getattr(member, "__module__", None)
          except TypeError:
              modname = None
          if modname is None:
              if name in ("__new__", "__subclasshook__"):
                  # Python 2.5.1 (r251:54863, Sep  1 2010, 22:03:14)
                  # >>> print object.__new__.__module__
                  # None
                  modname = builtins.__name__
              else:
                  attach_dummy_node(node, name, member)
                  return True
  
          real_name = {"gtk": "gtk_gtk", "_io": "io"}.get(modname, modname)
  
          if real_name != self._module.__name__:
              # check if it sounds valid and then add an import node, else use a
              # dummy node
              try:
                  getattr(sys.modules[modname], name)
              except (KeyError, AttributeError):
                  attach_dummy_node(node, name, member)
              else:
                  attach_import_node(node, modname, name)
              return True
          return False
docs: verify this is not an imported class or handle it