class_docstr: This masks out image regions with blurring or inpainting.
      
class_docstr_tok: ["This","masks","out","image","regions","with","blurring","or","inpainting","."]
docstr: Write a Image masker to a file stream.
          
docstr_tok: ["Write","a","Image","masker","to","a","file","stream","."]
code: def save(self, out_file):
      """Write a Image masker to a file stream."""
      super().save(out_file)
  
      # Increment the version number when the encoding changes!
      with Serializer(out_file, "shap.maskers.Image", version=0) as s:
          s.save("mask_value", self.input_mask_value)
          s.save("shape", self.input_shape)
  
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 5 for calling the Image obj's underlying member method code with example usage: obj.save(out_file) without return types