code: def exec_watershed_by_version(
      watershed_param, region_score, word_image, pseudo_vis_opt
  ):
      func_name_map_dict = {
          "skimage": segment_region_score,
      }
  
      try:
          return func_name_map_dict[watershed_param.version](
              watershed_param, region_score, word_image, pseudo_vis_opt
          )
      except:
          print(
              f"Watershed version {watershed_param.version} does not exist in func_name_map_dict."
          )
  
imports: import cv2
  import numpy
  from skimage.segmentation import watershed
label_desc: Use image node_id 2 for calling a global function with example usage: exec_watershed_by_version(watershed_param, region_score, word_image, pseudo_vis_opt) and returns: func_name_map_dict