code: def modulate(signal, maxval=0.5, n_t=10, method="linear"):
      """Generate abs(normal noise) with stddev from uniform, multiply original."""
      n_batch, n_timesteps, _ = signal.shape
      signal_std = np.random.uniform(0.0, maxval, n_batch)
      mod = np.abs(np.random.normal(1.0, signal_std, [1, n_t, 1]))
      mod = np.transpose(mod, [2, 1, 0])
      mod = ddsp.core.resample(mod, n_timesteps, method=method)
      return signal * mod
  
file_path: ddsp/ddsp/training/data_preparation/synthetic_data.py
imports: import warnings
  import ddsp
  import gin
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 6 for calling a global function with example usage: modulate(signal, maxval, n_t, method) and returns: unknown