class_docstr: Test class for `ModifiedPanopticQuality` metric.
class_docstr_tok: ["Test","class","for","`","ModifiedPanopticQuality","`","metric","."]
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_panoptic_quality_functional(self):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          _INPUTS_0.preds,
          _INPUTS_0.target,
          metric_functional=modified_panoptic_quality,
          reference_metric=_compare_fn_0_0,
          metric_args=_ARGS_0,
      )
  
file_path: torchmetrics/tests/unittests/detection/test_modified_panoptic_quality.py
imports: from typing import Any, Dict
  import numpy
  import pytest
  import torch
  from torchmetrics.detection import ModifiedPanopticQuality
  from torchmetrics.functional.detection import modified_panoptic_quality
  from unittests import _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling the TestModifiedPanopticQuality obj's underlying member method code with example usage: obj.test_panoptic_quality_functional() without return types