code: def _interval_overlap(interval_a, interval_b):
      x1, x2 = interval_a
      x3, x4 = interval_b
  
      if x3 < x1:
          if x4 < x1:
              return 0
          else:
              return min(x2, x4) - x1
      else:
          if x2 < x3:
              return 0
          else:
              return min(x2, x4) - x3
  
file_path: ImageAI/imageai_tf_deprecated/Detection/Custom/utils/bbox.py
imports: import numpy
  import os
  import cv2
  from .colors import get_color
label_desc: Use image node_id 1 for calling a global function with example usage: _interval_overlap(interval_a, interval_b) and returns: int, unknown, int, unknown