code: def test_error_on_wrong_update(inp1, inp2):
      """Test error is raised on wrong input to update method."""
      metric = LearnedPerceptualImagePatchSimilarity()
      with pytest.raises(
          ValueError,
          match="Expected both input arguments to be normalized tensors .*",
      ):
          metric(inp1, inp2)
  
imports: from functools import partial
  from typing import NamedTuple
  import pytest
  import torch
  from lpips import LPIPS
  from torch import Tensor
  from torchmetrics.functional.image.lpips import learned_perceptual_image_patch_similarity
  from torchmetrics.image.lpip import LearnedPerceptualImagePatchSimilarity
  from torchmetrics.utilities.imports import _LPIPS_AVAILABLE, _TORCHVISION_AVAILABLE
  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_error_on_wrong_update(inp1, inp2) without return types