docstr: Test `match_phone_numbers` in TweetTokenizer.
  
  Note that TweetTokenizer is also passed the following for these tests:
      * strip_handles=True
      * reduce_len=True
  
  :param test_input: The input string to tokenize using TweetTokenizer.
  :type test_input: str
  :param expecteds: A 2-tuple of tokenized sentences. The first of the two
      tokenized is the expected output of tokenization with `match_phone_numbers=True`.
      The second of the two tokenized lists is the expected output of tokenization
      with `match_phone_numbers=False`.
  :type expecteds: Tuple[List[str], List[str]]
docstr_tok: ["Test","`","match_phone_numbers","`","in","TweetTokenizer",".","Note","that","TweetTokenizer","is","also","passed","the","following","for","these","tests",":","*","strip_handles=True","*","reduce_len=True",":","param","test_input",":","The","input","string","to","tokenize","using","TweetTokenizer",".",":","type","test_input",":","str",":","param","expecteds",":","A","2-tuple","of","tokenized","sentences",".","The","first","of","the","two","tokenized","is","the","expected","output","of","tokenization","with","`","match_phone_numbers=True","`",".","The","second","of","the","two","tokenized","lists","is","the","expected","output","of","tokenization","with","`","match_phone_numbers=False","`",".",":","type","expecteds",":","Tuple","[","List","[","str","]",",","List","[","str","]","]"]
code: def test_tweet_tokenizer_expanded(
      self, test_input: str, expecteds: Tuple[List[str], List[str]]
  ):
      """
      Test `match_phone_numbers` in TweetTokenizer.
  
      Note that TweetTokenizer is also passed the following for these tests:
          * strip_handles=True
          * reduce_len=True
  
      :param test_input: The input string to tokenize using TweetTokenizer.
      :type test_input: str
      :param expecteds: A 2-tuple of tokenized sentences. The first of the two
          tokenized is the expected output of tokenization with `match_phone_numbers=True`.
          The second of the two tokenized lists is the expected output of tokenization
          with `match_phone_numbers=False`.
      :type expecteds: Tuple[List[str], List[str]]
      """
      for match_phone_numbers, expected in zip(
          [True, False], expecteds
      ):
          tokenizer = TweetTokenizer(
              strip_handles=True,
              reduce_len=True,
              match_phone_numbers=match_phone_numbers,
          )
          predicted = tokenizer.tokenize(test_input)
          assert predicted == expected
  
imports: from typing import List, Tuple
  import pytest
  from nltk.tokenize import LegalitySyllableTokenizer, StanfordSegmenter, SyllableTokenizer, TreebankWordTokenizer, TweetTokenizer, punkt, sent_tokenize, word_tokenize
  from nltk.tokenize.simple import CharTokenizer
label_desc: Use image node_id 2 for calling the TestTokenize obj's underlying member method code with example usage: obj.test_tweet_tokenizer_expanded(test_input, expecteds) without return types