code: def spm_paradigm(block_duration):
      frame_times = np.linspace(0, 99, 100)
      conditions = [
          "c0",
          "c0",
          "c0",
          "c1",
          "c1",
          "c1",
          "c2",
          "c2",
          "c2",
      ]
      onsets = [30, 50, 70, 10, 30, 80, 30, 40, 60]
      durations = block_duration * np.ones(len(onsets))
      events = pd.DataFrame(
          {
              "trial_type": conditions,
              "onset": onsets,
              "duration": durations,
          }
      )
      return events, frame_times
  
file_path: nilearn/nilearn/glm/tests/_testing.py
imports: import numpy
  import pandas
  from nilearn.conftest import _rng
label_desc: Use image node_id 7 for calling a global function with example usage: spm_paradigm(block_duration) and returns: events,  frame_times