code: def normalize(data):
      
      out_data = data.copy()
  
      for i, sample in enumerate(out_data):
          out_data[i] /= sum(out_data[i])
  
      return out_data
docs: Normalize the data to be in the [0, 1] range.
  
      :param data:
      :return: normalized data