code: def compute_np_iu(seg, gt):
      intersection = (seg & gt).astype(np.float32).sum()
      union = (seg | gt).astype(np.float32).sum()
  
      return intersection, union
  
file_path: PaddleSeg/EISeg/eiseg/plugin/video/util/tensor_util.py
imports: import numpy
  import paddle
  import paddle.nn.functional
  from paddle.vision import transforms
label_desc: Use image node_id 3 for calling a global function with example usage: compute_np_iu(seg, gt) and returns: intersection,  union