class_docstr: Mixin for testing images that may return memory maps
class_docstr_tok: ["Mixin","for","testing","images","that","may","return","memory","maps"]
docstr: Return image, image filename, and flag for required scaling
  
  Subclasses can do anything to return an image, including loading a
  pre-existing image from disk.
  
  Returns
  -------
  img : class:`SpatialImage` instance
  fname : str
      Image filename.
  has_scaling : bool
      True if the image array has scaling to apply to the raw image array
      data, False otherwise.
docstr_tok: ["Return","image",",","image","filename",",","and","flag","for","required","scaling","Subclasses","can","do","anything","to","return","an","image",",","including","loading","a","pre-existing","image","from","disk",".","Returns","--","--","--","-","img",":","class",":","`","SpatialImage","`","instance","fname",":","str","Image","filename",".","has_scaling",":","bool","True","if","the","image","array","has","scaling","to","apply","to","the","raw","image","array","data",",","False","otherwise","."]
code: def get_disk_image(self):
      """Return image, image filename, and flag for required scaling
  
      Subclasses can do anything to return an image, including loading a
      pre-existing image from disk.
  
      Returns
      -------
      img : class:`SpatialImage` instance
      fname : str
          Image filename.
      has_scaling : bool
          True if the image array has scaling to apply to the raw image array
          data, False otherwise.
      """
      img_klass = self.image_class
      shape = (3, 4, 2)
      data = np.arange(np.prod(shape), dtype=np.int16).reshape(shape)
      img = img_klass(data, None)
      fname = "test" + img_klass.files_types[0][1]
      img.to_filename(fname)
      return img, fname, False
  
imports: from io import BytesIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ..None import load
  from ..imageclasses import spatial_axes_first
  from ..spatialimages import HeaderDataError, SpatialHeader, SpatialImage
  from ..testing import bytesio_round_trip, expires, memmap_after_ufunc
  from ..tmpdirs import InTemporaryDirectory
label_desc: Use image node_id 1 for calling the MmapImageMixin obj's underlying member method code with example usage: obj.get_disk_image() and returns: img,  fname,  False