code: def _find_module(self, name, path=None):
      state = _get_state(self.config)
      if not self._should_rewrite(name, None, state):
          return None
      state.trace("find_module called for: %s" % name)
  
      try:
          if self.is_package(name):
              return None
      except ImportError:
          return None
  
      if hasattr(self._rewritten_names, "add"):
          self._rewritten_names.add(name)
      else:
          self._rewritten_names[name] = Path(path[0])
  
      state.trace("rewriting %s" % name)
      co = _rewrite_test(self.config, name)
      if co is None:
          # Probably a SyntaxError in the test.
          return None
      self.modules[name] = co, None
      return co
  
file_path: catboost/library/python/pytest/rewrite.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  import ast
  import py
  from _pytest.assertion import rewrite
  from __res import importer
  import sys
  import six
label_desc: Use image node_id 3 for calling the AssertionRewritingHook obj's underlying member method code with example usage: obj._find_module(name, path) and returns: co, None, None, None, None