code: def test_tokenize_handles_contraction(self):
      # note that "would've" is kept together, while "ain't" is not.
      sentence = "it ain't joe's problem; would been yesterday"
      expected_tokens = [
          "it",
          "ai",
          "n't",
          "joe",
          "'s",
          "problem",
          ";",
          "would",
          "been",
          "yesterday",
      ]
      tokens = [t.text for t in self.word_tokenizer.tokenize(sentence)]
      assert tokens == expected_tokens
  
file_path: allennlp/tests/data/tokenizers/spacy_tokenizer_test.py
imports: import spacy
  from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers import Token, SpacyTokenizer
label_desc: Use image node_id 3 for calling the TestSpacyTokenizer obj's underlying member method code with example usage: obj.test_tokenize_handles_contraction() without return types