code: def get_random_instruments(
      model, total_time, secs_per_instrument=2.0
  ):
      """Get random latent vectors evenly spaced in time."""
      n_instruments = int(total_time / secs_per_instrument)
      z_instruments = model.generate_z(n_instruments)
      t_instruments = np.linspace(-0.0001, total_time, n_instruments)
      return z_instruments, t_instruments
  
file_path: magenta/magenta/models/gansynth/lib/generate_util.py
imports: from magenta.models.gansynth.lib import util
  import note_seq
  import numpy
  from scipy.io import wavfile
label_desc: Use image node_id 3 for calling a global function with example usage: get_random_instruments(model, total_time, secs_per_instrument) and returns: z_instruments,  t_instruments