class_docstr: Referring Expression Segmentation Metric.
code: def compute_iou(
      self, pred_seg: torch.Tensor, gt_seg: torch.Tensor
  ) -> tuple:
      overlap = pred_seg & gt_seg
      union = pred_seg | gt_seg
      return overlap, union
  
file_path: mmdetection/mmdet/evaluation/metrics/refseg_metric.py
imports: from typing import Sequence
  import torch
  from mmengine.evaluator import BaseMetric
  from mmdet.registry import METRICS
label_desc: Use image node_id 2 for calling the RefSegMetric obj's underlying member method code with example usage: obj.compute_iou(pred_seg, gt_seg) and returns: overlap,  union