code: def test_count_vocab_items_respects_casing(self):
      indexer = TokenCharactersIndexer(
          "characters", min_padding_length=5
      )
      counter = defaultdict(lambda: defaultdict(int))
      indexer.count_vocab_items(Token("Hello"), counter)
      indexer.count_vocab_items(Token("hello"), counter)
      assert counter["characters"] == {
          "h": 1,
          "H": 1,
          "e": 2,
          "l": 4,
          "o": 2,
      }
  
      indexer = TokenCharactersIndexer(
          "characters",
          CharacterTokenizer(lowercase_characters=True),
          min_padding_length=5,
      )
      counter = defaultdict(lambda: defaultdict(int))
      indexer.count_vocab_items(Token("Hello"), counter)
      indexer.count_vocab_items(Token("hello"), counter)
      assert counter["characters"] == {"h": 2, "e": 2, "l": 4, "o": 2}
  
file_path: allennlp/tests/data/token_indexers/character_token_indexer_test.py
imports: from collections import defaultdict
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token, Vocabulary
  from allennlp.data.token_indexers import TokenCharactersIndexer
  from allennlp.data.tokenizers.character_tokenizer import CharacterTokenizer
label_desc: Use image node_id 1 for calling the CharacterTokenIndexerTest obj's underlying member method code with example usage: obj.test_count_vocab_items_respects_casing() without return types