code: def test_read_events(events, tmp_path):
      """Test that a events for an experimental paradigm are correctly read."""
      csvfile = write_events(events, tmp_path)
      read_paradigm = pd.read_table(csvfile)
  
      assert (read_paradigm["onset"] == events["onset"]).all()
  
file_path: nilearn/nilearn/glm/tests/test_paradigm.py
imports: import os
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_array_equal
  from nilearn._utils.data_gen import basic_paradigm
  from nilearn.glm.first_level.experimental_paradigm import check_events, handle_modulation_of_duplicate_events
  from ._testing import block_paradigm, design_with_nan_durations, design_with_nan_onsets, design_with_null_durations, duplicate_events_paradigm, modulated_block_paradigm, modulated_event_paradigm
label_desc: Use image node_id 5 for calling a global function with example usage: test_read_events(events, tmp_path) without return types