code: def test_count_vocab_items_respects_casing(self):
      indexer = SingleIdTokenIndexer("words")
      counter = defaultdict(lambda: defaultdict(int))
      indexer.count_vocab_items(Token("Hello"), counter)
      indexer.count_vocab_items(Token("hello"), counter)
      assert counter["words"] == {"hello": 1, "Hello": 1}
  
      indexer = SingleIdTokenIndexer("words", lowercase_tokens=True)
      counter = defaultdict(lambda: defaultdict(int))
      indexer.count_vocab_items(Token("Hello"), counter)
      indexer.count_vocab_items(Token("hello"), counter)
      assert counter["words"] == {"hello": 2}
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/token_indexers/single_id_token_indexer_test.py
imports: from __future__ import absolute_import
  from collections import defaultdict
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token
  from allennlp.data.token_indexers import SingleIdTokenIndexer
label_desc: Use image node_id 1 for calling the TestSingleIdTokenIndexer obj's underlying member method code with example usage: obj.test_count_vocab_items_respects_casing() without return types