code: def _make_bos_eos(
      character: int,
      padding_character: int,
      beginning_of_word_character: int,
      end_of_word_character: int,
      max_word_length: int,
  ):
      char_ids = [padding_character] * max_word_length
      char_ids[0] = beginning_of_word_character
      char_ids[1] = character
      char_ids[2] = end_of_word_character
      return char_ids
  
file_path: allennlp/allennlp/data/token_indexers/elmo_indexer.py
imports: from typing import Dict, List
  import torch
  from allennlp.common.util import pad_sequence_to_length
  from allennlp.data.tokenizers import Token
  from allennlp.data.token_indexers.token_indexer import TokenIndexer, IndexedTokenList
  from allennlp.data.vocabulary import Vocabulary
label_desc: Use image node_id 1 for calling a global function with example usage: _make_bos_eos(character, padding_character, beginning_of_word_character, end_of_word_character, max_word_length) and returns: char_ids