code: def test_langid(basic_multilingual):
      """
      Basic test of language identification
      """
      english_text = "This is an English sentence."
      french_text = "C'est une phrase française."
      docs = [english_text, french_text]
  
      docs = [Document([], text=text) for text in docs]
      basic_multilingual(docs)
      predictions = [doc.lang for doc in docs]
      assert predictions == ["en", "fr"]
  
file_path: stanza/stanza/tests/langid/test_langid.py
imports: import pytest
  from stanza.models.common.doc import Document
  from stanza.pipeline.core import Pipeline
  from stanza.pipeline.langid_processor import LangIDProcessor
  from stanza.tests import TEST_MODELS_DIR
label_desc: Use image node_id 5 for calling a global function with example usage: test_langid(basic_multilingual) without return types