code: def test_displacy_raises_for_wrong_type(en_vocab):
      with pytest.raises(ValueError):
          displacy.render("hello world")
  
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 17 for calling a global function with example usage: test_displacy_raises_for_wrong_type(en_vocab) without return types