code: def test_displacy_manual_sorted_entities():
      doc = {
          "text": "But Google is starting from behind.",
          "ents": [
              {"start": 14, "end": 22, "label": "SECOND"},
              {"start": 4, "end": 10, "label": "FIRST"},
          ],
          "title": None,
      }
  
      html = displacy.render(doc, style="ent", manual=True)
      assert html.find("FIRST") < html.find("SECOND")
  
imports: import numpy
  import pytest
  from spacy import displacy
  from spacy.displacy.render import DependencyRenderer, EntityRenderer, SpanRenderer
  from spacy.lang.en import English
  from spacy.lang.fa import Persian
  from spacy.tokens import Doc, Span
label_desc: Use image node_id 24 for calling a global function with example usage: test_displacy_manual_sorted_entities() without return types