class_docstr: Template class to implement header protocol
class_docstr_tok: ["Template","class","to","implement","header","protocol"]
code: def __eq__(self, other: object) -> bool:
      if isinstance(other, SpatialHeader):
          return (
              self.get_data_dtype(),
              self.get_data_shape(),
              self.get_zooms(),
          ) == (
              other.get_data_dtype(),
              other.get_data_shape(),
              other.get_zooms(),
          )
      return NotImplemented
  
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 3 for calling the SpatialHeader obj's underlying member method code with example usage: obj.__eq__(other) and returns: NotImplemented, unknown