class_docstr: Template class for volumetric (3D/4D) images
class_docstr_tok: ["Template","class","for","volumetric","(","3D\/4D",")","images"]
docstr: No slicing or dictionary interface for images
  
  Use the slicer attribute to perform cropping and subsampling at your
  own risk.
docstr_tok: ["No","slicing","or","dictionary","interface","for","images","Use","the","slicer","attribute","to","perform","cropping","and","subsampling","at","your","own","risk","."]
code: def __getitem__(self, idx: object) -> None:
      """No slicing or dictionary interface for images
  
      Use the slicer attribute to perform cropping and subsampling at your
      own risk.
      """
      raise TypeError(
          "Cannot slice image objects; consider using `img.slicer[slice]` "
          "to generate a sliced image (see documentation for caveats) or "
          "slicing image array data with `img.dataobj[slice]` or "
          "`img.get_fdata()[slice]`"
      )
  
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 10 for calling the SpatialImage obj's underlying member method code with example usage: obj.__getitem__(idx) without return types