code: def get_data(n_trials, j_extent):
      """Generate ground truth and testing data."""
      ground_truth = np.tile(single_trial, n_trials)
      my_shape = n_trials, 1, 600
      random_data = rng.random_sample(my_shape)
      rand_ints = rng.randint(-j_extent, j_extent, n_trials)
      jittered_data = np.array(
          [np.roll(single_trial, i) for i in rand_ints]
      )
      data = np.concatenate(
          [
              ground_truth.reshape(my_shape),
              jittered_data.reshape(my_shape),
              random_data.reshape(my_shape),
          ],
          1,
      )
  
      assert data.shape == (n_trials, 3, 600)
      return data
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from mne.preprocessing.ctps_ import _compute_normalized_phase, _prob_kuiper, ctps
  from mne.time_frequency import morlet
label_desc: Use image node_id 1 for calling a global function with example usage: get_data(n_trials, j_extent) and returns: data