code: def test_import_error_function():
      fn = import_error_function("foobar")
      assert callable(fn)
      with pytest.raises(ImportError):
          fn()
      with pytest.raises(ImportError):
          fn(1, 2)
      with pytest.raises(ImportError):
          fn(a=1, b=2)
      with pytest.raises(ImportError):
          fn(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 6 for calling a global function with example usage: test_import_error_function() without return types