code: def test_en_customized_tokenizer_handles_infixes(custom_en_tokenizer):
      sentence = "The 8 and 10-county definitions are not used for the greater Southern California Megaregion."
      context = [word.text for word in custom_en_tokenizer(sentence)]
      assert context == [
          "The",
          "8",
          "and",
          "10",
          "-",
          "county",
          "definitions",
          "are",
          "not",
          "used",
          "for",
          "the",
          "greater",
          "Southern",
          "California",
          "Megaregion",
          ".",
      ]
      # the trailing '-' may cause Assertion Error
      sentence = "The 8- and 10-county definitions are not used for the greater Southern California Megaregion."
      context = [word.text for word in custom_en_tokenizer(sentence)]
      assert context == [
          "The",
          "8",
          "-",
          "and",
          "10",
          "-",
          "county",
          "definitions",
          "are",
          "not",
          "used",
          "for",
          "the",
          "greater",
          "Southern",
          "California",
          "Megaregion",
          ".",
      ]
  
file_path: spaCy/spacy/tests/lang/en/test_customized_tokenizer.py
imports: import re
  import pytest
  from spacy.lang.en import English
  from spacy.tokenizer import Tokenizer
  from spacy.util import compile_infix_regex, compile_prefix_regex, compile_suffix_regex
label_desc: Use image node_id 2 for calling a global function with example usage: test_en_customized_tokenizer_handles_infixes(custom_en_tokenizer) without return types