class_docstr: If there is no __path__ entry on the parent module, then 'path' is None
  [no path]. Otherwise, the value for __path__ is passed in for the 'path'
  argument [path set].
class_docstr_tok: ["If","there","is","no","__path__","entry","on","the","parent","module",",","then","'path","'","is","None","[","no","path","]",".","Otherwise",",","the","value","for","__path__","is","passed","in","for","the","'path'","argument","[","path","set","]","."]
code: def test_with_path(self):
      # [path set]
      pkg_name = "pkg"
      mod_name = pkg_name + ".module"
      path = [42]
      assert "." in mod_name
      with self.mock_modules(
          pkg_name + ".__init__", mod_name
      ) as importer:
          importer.modules[pkg_name].__path__ = path
          log, wrapped_call = self.log_finder(importer)
          setattr(
              importer,
              self.finder_name,
              MethodType(wrapped_call, importer),
          )
          with util.import_state(meta_path=[importer]):
              self.__import__(mod_name)
              assert len(log) == 2
              args = log[1][0]
              kwargs = log[1][1]
              # Assuming all arguments are positional.
              self.assertFalse(kwargs)
              self.assertEqual(args[0], mod_name)
              self.assertIs(args[1], path)
  
file_path: cpython/Lib/test/test_importlib/import_/test_meta_path.py
imports: from test.test_importlib import util
  import importlib._bootstrap
  import sys
  from types import MethodType
  import unittest
  import warnings
label_desc: Use image node_id 3 for calling the CallSignature obj's underlying member method code with example usage: obj.test_with_path() without return types