code: def test_tensorflow_utils_dependencies(opt_dep):
      """Tests that the saving utils module correctly protects against uninstalled optional dependencies."""
      dependency_map = defaultdict(lambda: ["default"])
      for dependency, relations in [
          ("batch_compute_kernel_matrix", ["tensorflow"]),
          ("mmd2", ["tensorflow"]),
          ("mmd2_from_kernel_matrix", ["tensorflow"]),
          ("relative_euclidean_distance", ["tensorflow"]),
          ("squared_pairwise_distance", ["tensorflow"]),
          ("GaussianRBF", ["tensorflow"]),
          ("DeepKernel", ["tensorflow"]),
          ("permed_lsdds", ["tensorflow"]),
          ("predict_batch", ["tensorflow"]),
          ("predict_batch_transformer", ["tensorflow"]),
          ("quantile", ["tensorflow"]),
          ("subset_matrix", ["tensorflow"]),
          ("zero_diag", ["tensorflow"]),
          ("mutate_categorical", ["tensorflow"]),
          ("TFDataset", ["tensorflow"]),
      ]:
          dependency_map[dependency] = relations
      from alibi_detect.utils import tensorflow as tensorflow_utils
  
      check_correct_dependencies(
          tensorflow_utils, 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 15 for calling a global function with example usage: test_tensorflow_utils_dependencies(opt_dep) without return types