code: def _rand_scale(scale):
      scale = np.random.uniform(1, scale)
      return scale if np.random.randint(2) == 0 else 1.0 / scale
  
file_path: ImageAI/imageai_tf_deprecated/Detection/Custom/utils/image.py
imports: import cv2
  import numpy
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: _rand_scale(scale) and returns: unknown