code: def generate_sample_bbox(sampler):
      scale = np.random.uniform(sampler[2], sampler[3])
      aspect_ratio = np.random.uniform(sampler[4], sampler[5])
      aspect_ratio = max(aspect_ratio, (scale**2.0))
      aspect_ratio = min(aspect_ratio, 1 / (scale**2.0))
      bbox_width = scale * (aspect_ratio**0.5)
      bbox_height = scale / (aspect_ratio**0.5)
      xmin_bound = 1 - bbox_width
      ymin_bound = 1 - bbox_height
      xmin = np.random.uniform(0, xmin_bound)
      ymin = np.random.uniform(0, ymin_bound)
      xmax = xmin + bbox_width
      ymax = ymin + bbox_height
      sampled_bbox = [xmin, ymin, xmax, ymax]
      return sampled_bbox
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import random
  import math
  import cv2
label_desc: Use image node_id 7 for calling a global function with example usage: generate_sample_bbox(sampler) and returns: sampled_bbox