code: def test_issue12816(en_vocab) -> None:
      """Test that displaCy's span visualizer escapes annotated HTML tags correctly."""
      # Create a doc containing an annotated word and an unannotated HTML tag
      doc = Doc(en_vocab, words=["test", "<TEST>"])
      doc.spans["sc"] = [Span(doc, 0, 1, label="test")]
  
      # Verify that the HTML tag is escaped when unannotated
      html = displacy.render(doc, style="span")
      assert "&lt;TEST&gt;" in html
  
      # Annotate the HTML tag
      doc.spans["sc"].append(Span(doc, 1, 2, label="test"))
  
      # Verify that the HTML tag is still escaped
      html = displacy.render(doc, style="span")
      assert "&lt;TEST&gt;" in html
  
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 25 for calling a global function with example usage: test_issue12816(en_vocab) without return types