class_docstr: Class for loading data.
docstr: Augment data by stretching x and y axis randomly [1-e, 1+e].
docstr_tok: ["Augment","data","by","stretching","x","and","y","axis","randomly","[","1-e",",","1+e","]","."]
code: def random_scale(self, data):
      """Augment data by stretching x and y axis randomly [1-e, 1+e]."""
      x_scale_factor = (
          np.random.random() - 0.5
      ) * 2 * self.random_scale_factor + 1.0
      y_scale_factor = (
          np.random.random() - 0.5
      ) * 2 * self.random_scale_factor + 1.0
      result = np.copy(data)
      result[:, 0] *= x_scale_factor
      result[:, 1] *= y_scale_factor
      return result
  
imports: import random
  import numpy
label_desc: Use image node_id 4 for calling the DataLoader obj's underlying member method code with example usage: obj.random_scale(data) and returns: result