code: def test_bos_to_char_ids(self):
      indexer = ELMoTokenCharactersIndexer()
      indices = indexer.tokens_to_indices(
          [Token("<S>")], Vocabulary(), "test-elmo"
      )
      expected_indices = [
          259,
          257,
          260,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
          261,
      ]
      assert indices == {"test-elmo": [expected_indices]}
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/token_indexers/elmo_indexer_test.py
imports: from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token, Vocabulary
  from allennlp.data.token_indexers import ELMoTokenCharactersIndexer
label_desc: Use image node_id 1 for calling the TestELMoTokenCharactersIndexer obj's underlying member method code with example usage: obj.test_bos_to_char_ids() without return types