code: def split_regions(axis):
      regions = []
      min_axis = 0
      for i in range(1, axis.shape[0]):
          if axis[i] != axis[i - 1] + 1:
              region = axis[min_axis:i]
              min_axis = i
              regions.append(region)
      return regions
  
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 3 for calling a global function with example usage: split_regions(axis) and returns: regions