code: def test_input_with_baselines(
      self, template, values, baselines
  ) -> None:
      perturbed_tensor = torch.tensor([[1.0, 0.0, 1.0, 0.0]])
  
      # single instance baselines
      tt_input = TextTemplateInput(
          template, values, baselines=baselines
      )
      self.assertEqual(
          tt_input.to_model_input(perturbed_tensor), "a b x d e z"
      )
  
file_path: captum/tests/attr/test_interpretable_input.py
imports: import torch
  from captum.attr._utils.interpretable_input import TextTemplateInput, TextTokenInput
  from parameterized import parameterized
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
label_desc: Use image node_id 2 for calling the TestTextTemplateInput obj's underlying member method code with example usage: obj.test_input_with_baselines(template, values, baselines) without return types