code: def test_uqi_unequal_kernel_size():
      """Test the case where kernel_size[0] != kernel_size[1]."""
      preds = torch.tensor(
          [
              [
                  [
                      [1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0],
                      [1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0],
                      [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                      [0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
                      [0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0],
                      [0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0],
                      [1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0],
                  ]
              ]
          ]
      )
      target = torch.tensor(
          [
              [
                  [
                      [1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0],
                      [0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0],
                      [1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0],
                      [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0],
                      [1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0],
                      [0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
                      [0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
                  ]
              ]
          ]
      )
      # kernel order matters
      torch.allclose(
          universal_image_quality_index(
              preds, target, kernel_size=(3, 5)
          ),
          torch.tensor(0.10662283),
      )
      torch.allclose(
          universal_image_quality_index(
              preds, target, kernel_size=(5, 3)
          ),
          torch.tensor(0.10662283),
      )
  
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 4 for calling a global function with example usage: test_uqi_unequal_kernel_size() without return types