code: def test_raises_error_on_wrong_prompts(prompts, match):
      """Test that the function raises an error if the prompts argument are not valid."""
      img = torch.rand(1, 3, 256, 256)
  
      with pytest.raises(ValueError, match=match):
          clip_image_quality_assessment(img, prompts=prompts)
  
imports: import os
  from functools import partial
  import matplotlib
  import matplotlib.pyplot
  import piq
  import pytest
  import torch
  from PIL import Image
  from torch import Tensor
  from torchmetrics.functional.multimodal.clip_iqa import clip_image_quality_assessment
  from torchmetrics.multimodal.clip_iqa import CLIPImageQualityAssessment
  from torchmetrics.utilities.imports import _PIQ_GREATER_EQUAL_0_8, _TRANSFORMERS_GREATER_EQUAL_4_10
  from torchvision.transforms import PILToTensor
  from unittests.helpers.testers import MetricTester
  from unittests.image import _SAMPLE_IMAGE
  from unittests.text.helpers import skip_on_connection_issues
label_desc: Use image node_id 1 for calling a global function with example usage: test_raises_error_on_wrong_prompts(prompts, match) without return types