code: def test_path_importer(tmpdir):
      tmpmodule = f"package.py"
      with open(tmpdir / tmpmodule, "w", encoding="utf-8") as f:
          f.write("raise ImportError")
  
      from jina.importer import PathImporter
  
      with pytest.raises(ImportError):
          PathImporter.add_modules(tmpdir / tmpmodule)
      with pytest.raises(FileNotFoundError):
          PathImporter.add_modules("some_package.py")
  
imports: import pytest
  from jina.importer import ImportExtensions
  from jina.logging.predefined import default_logger
label_desc: Use image node_id 3 for calling a global function with example usage: test_path_importer(tmpdir) without return types