code: def test_uqi_invalid_inputs(pred, target, kernel, sigma, match):
      """Check that errors are raised on wrong input and parameter combinations."""
      pred = torch.rand(pred)
      target = torch.rand(target)
      with pytest.raises(ValueError, match=match):
          universal_image_quality_index(pred, target, kernel, sigma)
  
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 2 for calling a global function with example usage: test_uqi_invalid_inputs(pred, target, kernel, sigma, match) without return types