code: def test_import_error_module():
      lib = import_error_module("foobar")
      assert isclass(lib)
      with pytest.raises(ImportError):
          lib.foo()
      with pytest.raises(ImportError):
          lib.foo(1, 2)
      with pytest.raises(ImportError):
          lib.foo(1, b=2)
  
file_path: tslumen/tests/unit/test_misc.py
imports: import pytest
  import mock
  from inspect import isclass
  import jinja2
  from tslumen.misc import lazyproperty, repr_html, import_error_function, import_error_class, import_error_module
label_desc: Use image node_id 8 for calling a global function with example usage: test_import_error_module() without return types