code: def _get_priority(hierarchy):
      if hierarchy[3] < 0:
          return 1
      if hierarchy[2] < 0:
          return 2
      return 3
  
file_path: PaddleSeg/EISeg/eiseg/util/regularization/rs_regularization.py
imports: import math
  import cv2
  import numpy
  from .utils import calc_distance
label_desc: Use image node_id 4 for calling a global function with example usage: _get_priority(hierarchy) and returns: int, int, int