code: def test_basic_infidelity_additional_forward_args1(self) -> None:
      model = BasicModel4_MultiArgs()
  
      input1 = torch.tensor([[1.5, 2.0, 3.3]])
      input2 = torch.tensor([[3.0, 3.5, 2.2]])
  
      args = torch.tensor([[1.0, 3.0, 4.0]])
      ig = IntegratedGradients(model)
  
      infidelity1 = self.basic_model_global_assert(
          ig,
          model,
          (input1, input2),
          torch.zeros(1),
          additional_args=args,
          n_perturb_samples=1,
          max_batch_size=1,
          perturb_func=_global_perturb_func1,
      )
  
      infidelity2 = self.basic_model_global_assert(
          ig,
          model,
          (input1, input2),
          torch.zeros(1),
          additional_args=args,
          n_perturb_samples=5,
          max_batch_size=2,
          perturb_func=_global_perturb_func1,
      )
  
      infidelity2_w_custom_pert_func = self.basic_model_global_assert(
          ig,
          model,
          (input1, input2),
          torch.zeros(1),
          additional_args=args,
          n_perturb_samples=5,
          max_batch_size=2,
          perturb_func=_global_perturb_func1_default,
      )
      assertTensorAlmostEqual(self, infidelity1, infidelity2, 0.0)
      assertTensorAlmostEqual(
          self, infidelity2_w_custom_pert_func, infidelity2, 0.0
      )
  
imports: import typing
  from typing import Any, Callable, cast, List, Tuple, Union
  import torch
  from captum._utils.typing import BaselineType, TargetType, TensorOrTupleOfTensorsGeneric
  from captum.attr import Attribution, DeepLift, FeatureAblation, IntegratedGradients, Saliency
  from captum.metrics import infidelity, infidelity_perturb_func_decorator
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
  from tests.helpers.basic_models import BasicModel2, BasicModel4_MultiArgs, BasicModel_ConvNet_One_Conv, BasicModel_MultiLayer
  from torch import Tensor
  from torch.nn import Module
label_desc: Use image node_id 4 for calling the Test obj's underlying member method code with example usage: obj.test_basic_infidelity_additional_forward_args1() without return types