code: def test_extract_entities_from_sentence():
      rt = ET.fromstring(SENTENCE_SAMPLE)
      entities = extract_entities_from_sentence(rt)
      assert entities == EXPECTED_ENTITIES["1-p"]["1.39-s"]
  
      rt = ET.fromstring(EMPTY_SENTENCE)
      entities = extract_entities_from_sentence(rt)
      assert entities == []
  
file_path: stanza/stanza/tests/ner/test_convert_nkjp.py
imports: import pytest
  import io
  import os
  import xml.etree.ElementTree
  from stanza.utils.datasets.ner.convert_nkjp import MORPH_FILE, NER_FILE, extract_entities_from_subfolder, extract_entities_from_sentence, extract_unassigned_subfolder_entities
label_desc: Use image node_id 4 for calling a global function with example usage: test_extract_entities_from_sentence() without return types