class_docstr: Template class for volumetric (3D/4D) images
class_docstr_tok: ["Template","class","for","volumetric","(","3D\/4D",")","images"]
code: def __str__(self) -> str:
      shape = self.shape
      affine = self.affine
      return f"""
  {self.__class__}
  data shape {shape}
  affine:
  {affine}
  metadata:
  {self._header}
  """
  
imports: from __future__ import annotations
  import io
  import typing
  from collections.abc import Sequence
  from typing import Literal
  import numpy
  from .arrayproxy import ArrayLike
  from .casting import sctypes_aliases
  from .dataobj_images import DataobjImage
  from .filebasedimages import FileBasedHeader, FileBasedImage
  from .fileholders import FileMap
  from .fileslice import canonical_slicers
  from .orientations import apply_orientation, inv_ornt_aff
  from .viewers import OrthoSlicer3D
  from .volumeutils import shape_zoom_affine
label_desc: Use image node_id 5 for calling the SpatialImage obj's underlying member method code with example usage: obj.__str__() and returns: str, self, str, shape, str, affine, str, self, str