code: def test_error_on_wrong_init():
      """Test class raises the expected errors."""
      with pytest.raises(
          ValueError, match="Argument `net_type` must be one .*"
      ):
          LearnedPerceptualImagePatchSimilarity(net_type="resnet")
  
      with pytest.raises(
          ValueError, match="Argument `reduction` must be one .*"
      ):
          LearnedPerceptualImagePatchSimilarity(
              net_type="squeeze", reduction=None
          )
  
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 3 for calling a global function with example usage: test_error_on_wrong_init() without return types