code: def generate_data(V, T, event_labels, event_means, noise_std):
      simul_data = np.empty((V, T))
      for t in range(T):
          simul_data[:, t] = stats.multivariate_normal.rvs(
              event_means[:, event_labels[t]], cov=noise_std, size=1
          )
  
      simul_data = stats.zscore(simul_data, axis=1, ddof=1)
      return simul_data
  
imports: import brainiak.eventseg.event
  import numpy
  from scipy import stats
  import logging
  import matplotlib.pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: generate_data(V, T, event_labels, event_means, noise_std) and returns: simul_data