code: def region_wise_random_select(regions, max_size):
      selected_index = list(np.random.choice(len(regions), 2))
      selected_values = []
      for index in selected_index:
          axis = regions[index]
          xx = int(np.random.choice(axis, size=1))
          selected_values.append(xx)
      xmin = min(selected_values)
      xmax = max(selected_values)
      return xmin, xmax
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import cv2
  import random
label_desc: Use image node_id 5 for calling a global function with example usage: region_wise_random_select(regions, max_size) and returns: xmin,  xmax