class_docstr: Test class for `PanopticQuality` metric.
class_docstr_tok: ["Test","class","for","`","PanopticQuality","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_panoptic_quality_class(
      self, ddp, inputs, args, reference_metric
  ):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp=ddp,
          preds=inputs.preds,
          target=inputs.target,
          metric_class=PanopticQuality,
          reference_metric=reference_metric,
          check_batch=False,
          metric_args=args,
      )
  
file_path: torchmetrics/tests/unittests/detection/test_panoptic_quality.py
imports: from typing import Any, Dict
  import numpy
  import pytest
  import torch
  from torchmetrics.detection.panoptic_qualities import PanopticQuality
  from torchmetrics.functional.detection.panoptic_qualities import panoptic_quality
  from unittests import _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestPanopticQuality obj's underlying member method code with example usage: obj.test_panoptic_quality_class(ddp, inputs, args, reference_metric) without return types