code: def test_csv_io(in_tmp_path):
      # test the csv io on design matrices
      tr = 1.0
      frametimes = np.linspace(0, 127 * tr, 128)
      paradigm = modulated_event_paradigm()
      DM = make_dmtx(
          frametimes,
          paradigm,
          hrf_model="Canonical",
          drift_model="polynomial",
          drift_order=3,
      )
      path = "dmtx.csv"
      DM.write_csv(path)
      DM2 = dmtx_from_csv(path)
      assert_almost_equal(DM.matrix, DM2.matrix)
      assert DM.names == DM2.names
  
imports: import os.path
  from unittest import skipIf
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..design_matrix import _convolve_regressors, _cosine_drift, dmtx_from_csv, dmtx_light, make_dmtx
  from ..experimental_paradigm import BlockParadigm, EventRelatedParadigm
label_desc: Use image node_id 37 for calling a global function with example usage: test_csv_io(in_tmp_path) without return types