code: def test_header_growth_axis():
      for is_fortran_array, dtype_space, expected_header_length in [
          [False, 22, 128],
          [False, 23, 192],
          [True, 23, 128],
          [True, 24, 192],
      ]:
          for size in [
              10**i for i in range(format.GROWTH_AXIS_MAX_DIGITS)
          ]:
              fp = BytesIO()
              format.write_array_header_1_0(
                  fp,
                  {
                      "shape": (2, size)
                      if is_fortran_array
                      else (size, 2),
                      "fortran_order": is_fortran_array,
                      "descr": np.dtype([(" " * dtype_space, int)]),
                  },
              )
  
              assert len(fp.getvalue()) == expected_header_length
  
imports: import sys
  import os
  import warnings
  import pytest
  from io import BytesIO
  import numpy
  from numpy.testing import assert_, assert_array_equal, assert_raises, assert_raises_regex, assert_warns, IS_PYPY, IS_WASM
  from numpy.testing._private.utils import requires_memory
  from numpy.lib import format
  import yatest.common
label_desc: Use image node_id 33 for calling a global function with example usage: test_header_growth_axis() without return types