code: def test_text_cleaning(basic_multilingual, clean_multilingual):
      """
      Basic test of cleaning text
      """
      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 clean_multilingual.processors["langid"]._clean_text
      clean_multilingual(docs)
      assert [doc.lang for doc in docs] == ["fr", "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 7 for calling a global function with example usage: test_text_cleaning(basic_multilingual, clean_multilingual) without return types