code: def test_general_init(self):
      super().test_general_init()
      hdr = self.header_class()
      # an empty header has shape (0,) - like an empty array
      # (np.array([]))
      assert hdr.get_data_shape() == (0,)
      # The affine is always homogeneous 3D regardless of shape. The
      # default affine will have -1 as the X zoom iff default_x_flip
      # is True (which it is by default). We have to be careful of the
      # translations though - these arise from SPM's use of the origin
      # field, and the center of the image.
      assert_array_equal(np.diag(hdr.get_base_affine()), [-1, 1, 1, 1])
      # But zooms only go with number of dimensions
      assert hdr.get_zooms() == (1.0,)
  
imports: import itertools
  import logging
  import os
  import pickle
  import re
  from io import BytesIO, StringIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..None import imageglobals
  from ..analyze import AnalyzeHeader, AnalyzeImage
  from ..arraywriters import WriterError
  from ..casting import sctypes_aliases
  from ..nifti1 import Nifti1Header
  from ..optpkg import optional_package
  from ..spatialimages import HeaderDataError, HeaderTypeError, supported_np_types
  from ..testing import assert_dt_equal, bytesio_filemap, bytesio_round_trip, data_path, suppress_warnings
  from ..tmpdirs import InTemporaryDirectory
  from .None import test_spatialimages
  from .None import test_wrapstruct
label_desc: Use image node_id 3 for calling the TestAnalyzeHeader obj's underlying member method code with example usage: obj.test_general_init() without return types