class_docstr: Class returns a list of Ecat images, with one image(hdr/data) per frame
class_docstr_tok: ["Class","returns","a","list","of","Ecat","images",",","with","one","image","(","hdr\/data",")","per","frame"]
docstr: class method to create image from mapping
  specified in file_map
docstr_tok: ["class","method","to","create","image","from","mapping","specified","in","file_map"]
code: def from_file_map(klass, file_map, *, mmap=True, keep_file_open=None):
      """class method to create image from mapping
      specified in file_map
      """
      hdr_file, img_file = klass._get_fileholders(file_map)
      # note header and image are in same file
      hdr_fid = hdr_file.get_prepare_fileobj(mode="rb")
      header = klass.header_class.from_fileobj(hdr_fid)
      hdr_copy = header.copy()
      # LOAD MLIST
      mlist = np.zeros((header["num_frames"], 4), dtype=np.int32)
      mlist_data = read_mlist(hdr_fid, hdr_copy.endianness)
      mlist[: len(mlist_data)] = mlist_data
      # LOAD SUBHEADERS
      subheaders = klass.subheader_class(hdr_copy, mlist, hdr_fid)
      # LOAD DATA
      # Class level ImageArrayProxy
      data = klass.ImageArrayProxy(subheaders)
      # Get affine
      if not subheaders._check_affines():
          warnings.warn(
              "Affines different across frames, loading affine from FIRST frame",
              UserWarning,
          )
      aff = subheaders.get_frame_affine()
      img = klass(
          data,
          aff,
          header,
          subheaders,
          mlist,
          extra=None,
          file_map=file_map,
      )
      return img
  
imports: import warnings
  from numbers import Integral
  import numpy
  from .arraywriters import make_array_writer
  from .fileslice import canonical_slicers, predict_shape, slice2outax
  from .spatialimages import SpatialHeader, SpatialImage
  from .volumeutils import array_from_file, make_dt_codes, native_code, swapped_code
  from .wrapstruct import WrapStruct
label_desc: Use image node_id 10 for calling the EcatImage obj's underlying member method code with example usage: obj.from_file_map(klass, file_map) and returns: img