code: def test_1d(self):
      with self.assertRaises(NotImplementedError):
          PerceptualLoss(spatial_dims=1)
  
file_path: MONAI/tests/test_perceptual_loss.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.losses import PerceptualLoss
  from monai.utils import optional_import
  from tests.utils import SkipIfBeforePyTorchVersion, skip_if_downloading_fails, skip_if_quick
label_desc: Use image node_id 4 for calling the TestPerceptualLoss obj's underlying member method code with example usage: obj.test_1d() without return types