code: def test_resplit_keep_tokens(pipeline):
      """
      Test splitting with enforced token boundaries
      """
      tokens = [["I", "can't", "believe", "it"], ["I can't", "sleep"]]
      doc = resplit_mwt(tokens, pipeline)
      assert len(doc.sentences) == 2
      assert len(doc.sentences[0].tokens) == 4
      assert len(doc.sentences[0].tokens[1].words) == 2
      assert doc.sentences[0].tokens[1].words[0].text == "ca"
      assert doc.sentences[0].tokens[1].words[1].text == "n't"
  
      assert len(doc.sentences[1].tokens) == 2
      # updated GUM MWT splits "I can't" into three segments
      # the way we want, "I - ca - n't"
      # previously it would split "I - can - 't"
      assert len(doc.sentences[1].tokens[0].words) == 3
      assert doc.sentences[1].tokens[0].words[0].text == "I"
      assert doc.sentences[1].tokens[0].words[1].text == "ca"
      assert doc.sentences[1].tokens[0].words[2].text == "n't"
  
imports: import pytest
  import stanza
  from stanza.models.mwt.utils import resplit_mwt
  from stanza.tests import TEST_MODELS_DIR
label_desc: Use image node_id 2 for calling a global function with example usage: test_resplit_keep_tokens(pipeline) without return types