code: def encode(self, text, **kwargs):
      return torch.tensor([self.convert_tokens_to_ids(text.split(" "))])
  
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 DummyTokenizer obj's underlying member method code with example usage: obj.encode(text) and returns: torch