code: def test_validate_input(self) -> None:
      with self.assertRaises(AssertionError):
          _validate_input(
              (torch.tensor([-1.0, 1.0]),), (torch.tensor([-2.0]),)
          )
          _validate_input(
              (torch.tensor([-1.0, 1.0]),),
              (torch.tensor([-1.0, 1.0]),),
              n_steps=-1,
          )
          _validate_input(
              (torch.tensor([-1.0, 1.0]),),
              (torch.tensor([-1.0, 1.0]),),
              method="abcde",
          )
      _validate_input((torch.tensor([-1.0]),), (torch.tensor([-2.0]),))
      _validate_input(
          (torch.tensor([-1.0]),),
          (torch.tensor([-2.0]),),
          method="gausslegendre",
      )
  
file_path: captum/tests/attr/test_common.py
imports: import torch
  from captum.attr._core.noise_tunnel import SUPPORTED_NOISE_TUNNEL_TYPES
  from captum.attr._utils.common import _validate_input, _validate_noise_tunnel_type
  from tests.helpers.basic import BaseTest
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_validate_input() without return types