code: def sample_symbol(input_targets, output_target, symbol, num):
      logging.info(f"Sampling symbol: {symbol} for num: {num}")
      num_classes = input_targets.shape[1]
      for idx in range(num_classes):
          symbol_data = np.where(input_targets[:, idx] == symbol)[0]
          sampled = random.sample(list(symbol_data), num)
          for index in sampled:
              output_target[index, idx] = symbol
      return output_target
  
file_path: vissl/extra_scripts/create_low_shot_samples.py
imports: import argparse
  import logging
  import random
  import numpy
  from iopath.common.file_io import g_pathmgr
  from vissl.utils.io import load_file, save_file
label_desc: Use image node_id 1 for calling a global function with example usage: sample_symbol(input_targets, output_target, symbol, num) and returns: output_target