class_docstr: Import hook for a shim.
  
  This ensures that submodule imports return the real target module,
  not a clone that will confuse `is` and `isinstance` checks.
class_docstr_tok: ["Import","hook","for","a","shim",".","This","ensures","that","submodule","imports","return","the","real","target","module",",","not","a","clone","that","will","confuse","`","is","`","and","`","isinstance","`","checks","."]
docstr: Return self if we should be used to import the module.
docstr_tok: ["Return","self","if","we","should","be","used","to","import","the","module","."]
code: def find_module(self, fullname, path=None):
      """Return self if we should be used to import the module."""
      if fullname.startswith(self.src + "."):
          mirror_name = self._mirror_name(fullname)
          try:
              mod = import_item(mirror_name)
          except ImportError:
              return
          else:
              if not isinstance(mod, types.ModuleType):
                  # not a module
                  return None
              return self
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/shimmodule.py
imports: import sys
  import types
  from .importstring import import_item
label_desc: Use image node_id 3 for calling the ShimImporter obj's underlying member method code with example usage: obj.find_module(fullname, path) and returns: self, None