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}
  
imports: from collections import defaultdict
  from dataclasses import dataclass
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token, Vocabulary
  from allennlp.data.token_indexers import SingleIdTokenIndexer
  from allennlp.data.tokenizers import SpacyTokenizer
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