code: def random_upsampling(data, sample_num):
      """Up sample"""
      np.random.seed(2019)
      new_indices = np.random.permutation(range(sample_num))
      original_size = len(data)
      new_data = [data[i % original_size] for i in new_indices]
      return new_data
  
file_path: delta/delta/data/utils/test_utils.py
imports: import json
  import tempfile
  from pathlib import Path
  import kaldiio
  import numpy
  from delta.data.utils.common_utils import JsonNumpyEncoder
label_desc: Use image node_id 4 for calling a global function with example usage: random_upsampling(data, sample_num) and returns: new_data