code: def test_writing():
      """
      Tests the writing and reading back in of custom created CIFTI-2 axes
      """
      for ax1 in get_axes():
          for ax2 in get_axes():
              arr = np.random.randn(len(ax1), len(ax2))
              check_rewrite(arr, (ax1, ax2))
  
file_path: nibabel/nibabel/cifti2/tests/test_axes.py
imports: from copy import deepcopy
  import numpy
  import pytest
  import nibabel.cifti2.cifti2_axes
  from .test_cifti2io_axes import check_rewrite
label_desc: Use image node_id 12 for calling a global function with example usage: test_writing() without return types