class_docstr: Missing Dependency Class.
  
  Used to replace any object that requires unmet optional dependencies. Attribute access or calling the __call__
  method on this object will raise an error.
docstr: Metaclass for MissingDependency classes.
  
  Parameters
  ----------
  object_name
      Name of object we are replacing
  err
      Error to be raised when the class is initialized or used
  missing_dependency
      Name of missing dependency required for object
code: def __init__(
      self,
      object_name: str,
      err: Union[ModuleNotFoundError, ImportError],
      missing_dependency: str = "all",
  ):
      """Metaclass for MissingDependency classes.
  
      Parameters
      ----------
      object_name
          Name of object we are replacing
      err
          Error to be raised when the class is initialized or used
      missing_dependency
          Name of missing dependency required for object
      """
      self.missing_dependency = missing_dependency
      self.object_name = object_name
      self.err = err
  
file_path: alibi-detect/alibi_detect/utils/missing_optional_dependency.py
imports: from typing import Union, List, Optional, Any
  from string import Template
  from importlib import import_module
label_desc: Use image node_id 1 to create a new MissingDependency object  with example: obj = MissingDependency(object_name, err, missing_dependency)