code: def test_codepoint_text():
      """Test case of extracting the correct sentence text using codepoints"""
  
      text = "Unban mox opal 🐱.  This is a second sentence."
  
      with corenlp.CoreNLPClient(
          annotators=["tokenize", "ssplit"],
          properties={"tokenize.codepoint": "true"},
      ) as client:
          ann = client.annotate(text)
  
          text_start = ann.sentence[0].token[0].codepointOffsetBegin
          text_end = ann.sentence[0].token[-1].codepointOffsetEnd
          sentence_text = text[text_start:text_end]
          assert sentence_text == "Unban mox opal 🐱."
  
          text_start = ann.sentence[1].token[0].codepointOffsetBegin
          text_end = ann.sentence[1].token[-1].codepointOffsetEnd
          sentence_text = text[text_start:text_end]
          assert sentence_text == "This is a second sentence."
  
imports: import pytest
  import re
  import stanza.server
  from stanza.tests import compare_ignoring_whitespace
label_desc: Use image node_id 4 for calling a global function with example usage: test_codepoint_text() without return types