code: def sample_places_data(input_images, input_targets, num):
      sample_imgs, sample_lbls = [], []
      num_classes = int(max(input_targets) + 1)
      logging.info(f"Sampling for num: {num}")
      for idx in range(num_classes):
          sample = input_images[np.where(input_targets == idx)]
          subset_imgs = random.sample(list(sample), num)
          sample_lbls.extend([idx] * num)
          sample_imgs.extend(subset_imgs)
      return sample_imgs, sample_lbls
  
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 4 for calling a global function with example usage: sample_places_data(input_images, input_targets, num) and returns: sample_imgs,  sample_lbls