code: def test_arabic_pos_pipeline():
      pipe = stanza.Pipeline(
          **{
              "processors": "tokenize,pos",
              "dir": TEST_MODELS_DIR,
              "download_method": None,
              "lang": "ar",
          }
      )
      text = "ولم يتم اعتقال احد بحسب المتحدث باسم الشرطة."
  
      doc = pipe(text)
      # the first token translates to "and not", seems common enough
      # that we should be able to rely on it having a stable MWT and tag
  
      assert len(doc.sentences) == 1
      assert doc.sentences[0].tokens[0].text == "ولم"
      assert doc.sentences[0].words[0].xpos == "C---------"
      assert doc.sentences[0].words[1].xpos == "F---------"
  
imports: import pytest
  import stanza
  from stanza.tests import TEST_MODELS_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: test_arabic_pos_pipeline() without return types