class_docstr: Interface for 2 or 3D arrays representing images
  of raw luminance values, RGB values or HSV values.
class_docstr_tok: ["Interface","for","2","or","3D","arrays","representing","images","of","raw","luminance","values",",","RGB","values","or","HSV","values","."]
code: def mask(cls, dataset, mask, mask_val=np.nan):
      masked = dataset.data.copy().astype("float")
      masked[np.flipud(mask)] = mask_val
      return masked
  
imports: import numpy
  from ..None import util
  from ..boundingregion import BoundingBox
  from ..dimension import dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check
  from ..sheetcoords import SheetCoordinateSystem, Slice
  from .grid import GridInterface
  from .interface import DataError, Interface
  from .util import finite_range
label_desc: Use image node_id 12 for calling the ImageInterface obj's underlying member method code with example usage: obj.mask(cls, dataset, mask, mask_val) and returns: masked