class_docstr: This is the superclass of all models.
      
docstr: Wrap a callable model as a SHAP Model object.
          
docstr_tok: ["Wrap","a","callable","model","as","a","SHAP","Model","object","."]
code: def __init__(self, model=None):
      """Wrap a callable model as a SHAP Model object."""
      if isinstance(model, Model):
          self.inner_model = model.inner_model
      else:
          self.inner_model = model
  
      if hasattr(model, "output_names"):
          self.output_names = model.output_names
  
file_path: shap/shap/models/_model.py
imports: import numpy
  from .._serializable import Deserializer, Serializable, Serializer
  from ..utils import record_import_error, safe_isinstance
label_desc: Use image node_id 1 to create a new Model object from inherited base classes: Serializable with example: obj = Model(model)