class_docstr: Test class for `UniversalImageQualityIndex` metric.
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_uqi(self, preds, target, multichannel, kernel_size, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          UniversalImageQualityIndex,
          partial(
              _skimage_uqi,
              multichannel=multichannel,
              kernel_size=kernel_size,
          ),
          metric_args={"kernel_size": (kernel_size, kernel_size)},
      )
  
imports: from functools import partial
  from typing import NamedTuple
  import pytest
  import torch
  from skimage.metrics import structural_similarity
  from torch import Tensor
  from torchmetrics.functional.image.uqi import universal_image_quality_index
  from torchmetrics.image.uqi import UniversalImageQualityIndex
  from unittests import BATCH_SIZE, NUM_BATCHES
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestUQI obj's underlying member method code with example usage: obj.test_uqi(preds, target, multichannel, kernel_size, ddp) without return types