code: def convert_tokens_to_ids(self, tokens):
      return [
          (
              self.token_to_id[t]
              if t in self.token_to_id
              else self.unk_idx
          )
          for t in tokens
      ]
  
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 4 for calling the DummyTokenizer obj's underlying member method code with example usage: obj.convert_tokens_to_ids(tokens) and returns: unknown