code: def get_segments_iou(s1, s2):
      a, b = s1
      c, d = s2
      intersection = max(0, min(b, d) - max(a, c) + 1)
      union = max(1e-6, max(b, d) - min(a, c) + 1)
      return intersection / union
  
file_path: PaddleSeg/EISeg/eiseg/util/misc.py
imports: import paddle
  import numpy
  import pickle
label_desc: Use image node_id 7 for calling a global function with example usage: get_segments_iou(s1, s2) and returns: unknown