class_docstr: Template class for images that have dataobj data stores
class_docstr_tok: ["Template","class","for","images","that","have","dataobj","data","stores"]
docstr: True when any array data is in memory cache
  
  There are separate caches for `get_data` reads and `get_fdata` reads.
  This property is True if either of those caches are set.
docstr_tok: ["True","when","any","array","data","is","in","memory","cache","There","are","separate","caches","for","`","get_data","`","reads","and","`","get_fdata","`","reads",".","This","property","is","True","if","either","of","those","caches","are","set","."]
code: def in_memory(self) -> bool:
      """True when any array data is in memory cache
  
      There are separate caches for `get_data` reads and `get_fdata` reads.
      This property is True if either of those caches are set.
      """
      return (
          isinstance(self._dataobj, np.ndarray)
          or self._fdata_cache is not None
          or self._data_cache is not None
      )
  
file_path: nibabel/nibabel/dataobj_images.py
imports: from __future__ import annotations
  import typing
  import numpy
  from .arrayproxy import ArrayLike
  from .deprecated import deprecate_with_version
  from .filebasedimages import FileBasedHeader, FileBasedImage
  from .fileholders import FileMap
label_desc: Use image node_id 5 for calling the DataobjImage obj's underlying member method code with example usage: obj.in_memory() and returns: unknown