code: def test_lang_subset(
      basic_multilingual, enfr_multilingual, en_multilingual
  ):
      """
      Basic test of restricting output to subset of languages
      """
      docs = [
          "Bonjour le monde! #thisisfrench #ilovefrance",
          "Bonjour le monde! https://t.co/U0Zjp3tusD",
      ]
      docs = [Document([], text=text) for text in docs]
  
      basic_multilingual(docs)
      assert [doc.lang for doc in docs] == ["it", "it"]
  
      assert enfr_multilingual.processors[
          "langid"
      ]._model.lang_subset == ["en", "fr"]
      enfr_multilingual(docs)
      assert [doc.lang for doc in docs] == ["fr", "fr"]
  
      assert en_multilingual.processors[
          "langid"
      ]._model.lang_subset == ["en"]
      en_multilingual(docs)
      assert [doc.lang for doc in docs] == ["en", "en"]
  
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 9 for calling a global function with example usage: test_lang_subset(basic_multilingual, enfr_multilingual, en_multilingual) without return types