code: def visualize_str(text, pipeline_code, pipe):
      """
      Takes a string and visualizes it using displacy.
  
      The string is processed using the stanza pipeline and its
      dependencies are formatted into a spaCy doc object for easy
      visualization. Accepts valid stanza (UD) pipelines as the pipeline
      argument. Must supply the stanza pipeline code (the two-letter
      abbreviation of the language, such as 'en' for English. Must also
      supply the stanza pipeline object as the third argument.
      """
      doc = pipe(text)
      visualize_doc(doc, pipeline_code)
  
file_path: stanza/stanza/utils/visualization/dependency_visualization.py
imports: from stanza.models.common.constant import is_right_to_left
  import stanza
  import spacy
  from spacy import displacy
  from spacy.tokens import Doc
label_desc: Use image node_id 2 for calling a global function with example usage: visualize_str(text, pipeline_code, pipe) without return types