code: def compute_multi_class_iou_both_idx(seg, gt):
      # seg -> h*w
      # gt -> h*w
      num_classes = gt.max()
      iou_sum = 0
      for ki in range(1, num_classes + 1):
          iou_sum += compute_np_iou(seg == ki, gt == ki)
      return (iou_sum + 1e-6) / (num_classes + 1e-6)
  
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 8 for calling a global function with example usage: compute_multi_class_iou_both_idx(seg, gt) and returns: unknown