code: def block_paradigm():
      events = pd.DataFrame(
          {
              "trial_type": _conditions(),
              "onset": _onsets(),
              "duration": 5 * _durations(),
          }
      )
      return events
  
file_path: nilearn/nilearn/glm/tests/_testing.py
imports: import numpy
  import pandas
  from nilearn.conftest import _rng
label_desc: Use image node_id 5 for calling a global function with example usage: block_paradigm() and returns: events