code: def _merge(self, detected_regions, merge_regions):
      new_detected_regions = []
  
      # merging detected regions
      for index, region in enumerate(merge_regions):
          try:
              new_detected_regions[index]
          except IndexError:
              new_detected_regions.append([])
          for r_index in region:
              _tmp = copy.copy(new_detected_regions[index])
              _tmp.extend(detected_regions[r_index])
              new_detected_regions[index] = _tmp
              detected_regions[r_index] = []
  
      # push the rest of the regions to the detRegions array
      # (regions without merging)
      for region in detected_regions:
          if len(region) > 0:
              new_detected_regions.append(region)
  
      # clean up
      self._clear_regions(new_detected_regions)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import copy
  import math
  import time
  from io import IOBase
  from PIL import Image
  from skin_classifier import skin_classifier, Skin
label_desc: Use image node_id 6 for calling the Nude obj's underlying member method code with example usage: obj._merge(detected_regions, merge_regions) without return types