code: def test_read_paradigm():
      """test that a paradigm is correctly read"""
      session = "sess"
      paradigm = block_paradigm()
      csvfile = write_paradigm(paradigm, session)
      read_paradigm = load_paradigm_from_csv_file(csvfile)[session]
      assert (read_paradigm.onset == paradigm.onset).all()
  
      paradigm = modulated_event_paradigm()
      csvfile = write_paradigm(paradigm, session)
      read_paradigm = load_paradigm_from_csv_file(csvfile)[session]
      assert (read_paradigm.onset == paradigm.onset).all()
  
      paradigm = modulated_block_paradigm()
      csvfile = write_paradigm(paradigm, session)
      read_paradigm = load_paradigm_from_csv_file(csvfile)[session]
      assert (read_paradigm.onset == paradigm.onset).all()
  
      paradigm = basic_paradigm()
      csvfile = write_paradigm(paradigm, session)
      read_paradigm = load_paradigm_from_csv_file(csvfile)[session]
      assert (read_paradigm.onset == paradigm.onset).all()
  
file_path: nipy/nipy/modalities/fmri/tests/test_paradigm.py
imports: import numpy
  from ..experimental_paradigm import BlockParadigm, EventRelatedParadigm, load_paradigm_from_csv_file
label_desc: Use image node_id 6 for calling a global function with example usage: test_read_paradigm() without return types