code: def test_read_array(tmp_path):
      gifti_img = nib.gifti.GiftiImage()
      a = np.arange(5)
      gifti_array = nib.gifti.GiftiDataArray(a, datatype="float32")
      gifti_img.add_gifti_data_array(gifti_array)
      gifti_file = tmp_path / "a.gii"
      nib.save(gifti_img, gifti_file)
      read_a = _io.read_array(gifti_file)
      assert np.array_equal(a, read_a)
  
imports: import nibabel
  import numpy
  from nilearn.experimental.surface import _io
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_array(tmp_path) without return types