class_docstr: This masks out image regions with blurring or inpainting.
      
class_docstr_tok: ["This","masks","out","image","regions","with","blurring","or","inpainting","."]
docstr: Load a Image masker from a file stream.
          
docstr_tok: ["Load","a","Image","masker","from","a","file","stream","."]
code: def load(cls, in_file, instantiate=True):
      """Load a Image masker from a file stream."""
      if instantiate:
          return cls._instantiated_load(in_file)
  
      kwargs = super().load(in_file, instantiate=False)
      with Deserializer(
          in_file, "shap.maskers.Image", min_version=0, max_version=0
      ) as s:
          kwargs["mask_value"] = s.load("mask_value")
          kwargs["shape"] = s.load("shape")
      return kwargs
  
file_path: shap/shap/maskers/_image.py
imports: import heapq
  import warnings
  import numba.typed
  import numpy
  from numba import njit
  from numba.core.errors import NumbaPendingDeprecationWarning
  from .._serializable import Deserializer, Serializer
  from ..utils import assert_import, record_import_error, safe_isinstance
  from ..utils._exceptions import DimensionError
  from ._masker import Masker
label_desc: Use image node_id 6 for calling the Image obj's underlying member method code with example usage: obj.load(cls, in_file, instantiate) and returns: kwargs, cls