code: def __init__(self, vocab_list):
      self.token_to_id = {v: i for i, v in enumerate(vocab_list)}
      self.id_to_token = vocab_list
      self.unk_idx = len(vocab_list) + 1
  
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 1 to create a new DummyTokenizer object  with example: obj = DummyTokenizer(vocab_list)