code: def modulated_block_paradigm():
      durations = 5 + 5 * _rng().uniform(size=len(_onsets()))
      modulation = 1 + _rng().uniform(size=len(_onsets()))
      events = pd.DataFrame(
          {
              "trial_type": _conditions(),
              "onset": _onsets(),
              "duration": durations,
              "modulation": modulation,
          }
      )
      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 6 for calling a global function with example usage: modulated_block_paradigm() and returns: events