code: def make_random_one_hot_vectors(num, num_tokens):
      """Makes random one hot vectors of size [num, num_tokens]."""
      return tf.one_hot(
          tf.random_uniform(
              shape=(num,), maxval=num_tokens, dtype=tf.int32
          ),
          depth=num_tokens,
      )
  
file_path: magenta/magenta/models/gansynth/lib/util.py
imports: import io
  import os
  from absl import logging
  import numpy
  import tensorflow.compat.v1
  import tf_slim
label_desc: Use image node_id 4 for calling a global function with example usage: make_random_one_hot_vectors(num, num_tokens) and returns: tf