code: def test_confidence_dependencies(opt_dep):
      """Tests that the confidence module correctly protects against uninstalled optional dependencies."""
      from alibi import confidence
  
      check_correct_dependencies(
          confidence, defaultdict(lambda: ["default"]), 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 5 for calling a global function with example usage: test_confidence_dependencies(opt_dep) without return types