class_docstr: Template class to implement header protocol
class_docstr_tok: ["Template","class","to","implement","header","protocol"]
code: def __init__(
      self,
      data_dtype: npt.DTypeLike = np.float32,
      shape: Sequence[int] = (0,),
      zooms: Sequence[float] | None = None,
  ):
      self.set_data_dtype(data_dtype)
      self._zooms = ()
      self.set_data_shape(shape)
      if zooms is not None:
          self.set_zooms(zooms)
  
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 1 to create a new SpatialHeader object from inherited base classes: FileBasedHeader, SpatialProtocol with example: obj = SpatialHeader(data_dtype, shape, zooms)