code: def test_util_dependencies(opt_dep):
      """Tests that the utils module correctly protects against uninstalled optional dependencies."""
      util_dependency_map = defaultdict(lambda: ["default"])
      for dependency, relations in [
          ("DistributedExplainer", ["ray"]),
          ("LanguageModel", ["tensorflow"]),
          ("DistilbertBaseUncased", ["tensorflow"]),
          ("BertBaseUncased", ["tensorflow"]),
          ("RobertaBase", ["tensorflow"]),
      ]:
          util_dependency_map[dependency] = relations
      from alibi import utils
  
      check_correct_dependencies(utils, util_dependency_map, opt_dep)
  
file_path: alibi/alibi/tests/test_dep_management.py
imports: from types import ModuleType
  from collections import defaultdict
label_desc: Use image node_id 3 for calling a global function with example usage: test_util_dependencies(opt_dep) without return types