code: def test_od_dependencies(opt_dep):
      """Tests that the od module correctly protects against uninstalled optional dependencies."""
      dependency_map = defaultdict(lambda: ["default"])
      for dependency, relations in [
          ("LLR", ["tensorflow"]),
          ("OutlierVAE", ["tensorflow"]),
          ("OutlierVAEGMM", ["tensorflow"]),
          ("OutlierAE", ["tensorflow"]),
          ("OutlierAEGMM", ["tensorflow"]),
          ("OutlierSeq2Seq", ["tensorflow"]),
          ("OutlierProphet", ["prophet"]),
          ("PValNormalizer", ["torch", "keops"]),
          ("ShiftAndScaleNormalizer", ["torch", "keops"]),
          ("TopKAggregator", ["torch", "keops"]),
          ("AverageAggregator", ["torch", "keops"]),
          ("MaxAggregator", ["torch", "keops"]),
          ("MinAggregator", ["torch", "keops"]),
      ]:
          dependency_map[dependency] = relations
      from alibi_detect import od
  
      check_correct_dependencies(od, dependency_map, opt_dep)
  
file_path: alibi-detect/alibi_detect/tests/test_dep_management.py
imports: from types import ModuleType
  from collections import defaultdict
label_desc: Use image node_id 6 for calling a global function with example usage: test_od_dependencies(opt_dep) without return types