code: def test_raises_error_on_wrong_arguments(argument, match):
      """Test that appropriate errors are raised on wrong arguments."""
      with pytest.raises(ValueError, match=match):
          perceptual_path_length(DummyGenerator(128), **argument)
  
      with pytest.raises(ValueError, match=match):
          PerceptualPathLength(**argument)
  
imports: from operator import attrgetter
  import pytest
  import torch
  import torch_fidelity
  from torch import nn
  from torch_fidelity.sample_similarity_lpips import SampleSimilarityLPIPS
  from torch_fidelity.utils import batch_interp
  from torchmetrics.functional.image.lpips import _LPIPS
  from torchmetrics.functional.image.perceptual_path_length import _interpolate, perceptual_path_length
  from torchmetrics.image.perceptual_path_length import PerceptualPathLength
  from torchmetrics.utilities.imports import _TORCH_FIDELITY_AVAILABLE
  from unittests import skip_on_running_out_of_memory
  from unittests.helpers import seed_all
label_desc: Use image node_id 3 for calling a global function with example usage: test_raises_error_on_wrong_arguments(argument, match) without return types