code: def test_preserve_case(spacy_doc):
      results = [utils.preserve_case(tok) for tok in spacy_doc]
      assert all(isinstance(result, bool) for result in results)
      assert sum(1 if result else 0 for result in results) < sum(
          1 if not result else 0 for result in results
      )
  
file_path: textacy/tests/spacier/test_spacier_utils.py
imports: import pytest
  from spacy.tokens import Doc
  from textacy import load_spacy_lang
  from textacy.spacier import utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_preserve_case(spacy_doc) without return types