code: def compute_multi_class_iou(seg, gt):
      # seg -> k*h*w
      # gt -> k*1*h*w
      num_classes = gt.shape[0]
      pred_idx = paddle.argmax(seg, axis=0)
      iou_sum = 0
      for ki in range(num_classes):
          # seg includes BG class
          iou_sum += compute_tensor_iou(
              pred_idx == (ki + 1), gt[ki, 0] > 0.5
          )
  
      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 6 for calling a global function with example usage: compute_multi_class_iou(seg, gt) and returns: unknown