code: def _get_id_list(gt: torch.Tensor) -> list[torch.Tensor]:
      id_list = list(gt.unique())
      # ensure id 0 is included
      if 0 not in id_list:
          id_list.insert(0, torch.tensor(0).int())
  
      return id_list
  
file_path: MONAI/monai/metrics/panoptic_quality.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  import torch
  from monai.metrics.metric import CumulativeIterationMetric
  from monai.metrics.utils import do_metric_reduction, remap_instance_id
  from monai.utils import MetricReduction, ensure_tuple, optional_import
label_desc: Use image node_id 2 for calling a global function with example usage: _get_id_list(gt) and returns: id_list