code: def test_no_version_raises(monkeypatch):
      name = "fakemodule"
      module = types.ModuleType(name)
      sys.modules[name] = module
      monkeypatch.setitem(VERSIONS, name, "1.0.0")
  
      with pytest.raises(
          ImportError, match="Can't determine .* fakemodule"
      ):
          import_dependency(name)
  
file_path: pandas-ai/tests/helpers/test_optional_dependency.py
imports: import sys
  import types
  import pytest
  from pandasai.helpers.optional import VERSIONS, import_dependency
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_version_raises(monkeypatch) without return types