class_docstr: Base class for all interpretation methods.
docstr: Initialize an interpreter.
  
  :param instance: An object of type CausalModel, CausalEstimate or CausalRefutation.
docstr_tok: ["Initialize","an","interpreter",".",":","param","instance",":","An","object","of","type","CausalModel",",","CausalEstimate","or","CausalRefutation","."]
code: def __init__(self, instance, **kwargs):
      """Initialize an interpreter.
  
      :param instance: An object of type CausalModel, CausalEstimate or CausalRefutation.
  
      """
  
      self.model = None
      self.estimate = None
      self.refutation = None
  
      if isinstance(instance, dowhy.causal_model.CausalModel):
          self.model = instance
      elif isinstance(instance, dowhy.causal_estimator.CausalEstimate):
          self.estimate = instance
      elif isinstance(instance, dowhy.causal_refuter.CausalRefutation):
          self.refutation = instance
      else:
          self.logger.error(
              "Type of object passed not supported for interpretation."
          )
  
      # Unpacking the keyword arguments
      if kwargs is not None:
          for key, value in kwargs.items():
              setattr(self, key, value)
  
      self.logger = logging.getLogger(__name__)
  
imports: import logging
  import dowhy.causal_estimator
  import dowhy.causal_model
  import dowhy.causal_refuter
label_desc: Use image node_id 1 to create a new Interpreter object  with example: obj = Interpreter(instance)