code: def test_process_pipeline_parameters():
      """
      Test a few options for specifying which processors to load
      """
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          (
              lang,
              model_dir,
              package,
              processors,
          ) = common.process_pipeline_parameters(
              "en", test_dir, None, "tokenize,pos"
          )
          assert processors == {"tokenize": "default", "pos": "default"}
          assert package == None
  
          (
              lang,
              model_dir,
              package,
              processors,
          ) = common.process_pipeline_parameters(
              "en", test_dir, {"tokenize": "spacy"}, "tokenize,pos"
          )
          assert processors == {"tokenize": "spacy", "pos": "default"}
          assert package == None
  
          (
              lang,
              model_dir,
              package,
              processors,
          ) = common.process_pipeline_parameters(
              "en", test_dir, {"pos": "ewt"}, "tokenize,pos"
          )
          assert processors == {"tokenize": "default", "pos": "ewt"}
          assert package == None
  
          (
              lang,
              model_dir,
              package,
              processors,
          ) = common.process_pipeline_parameters(
              "en", test_dir, "ewt", "tokenize,pos"
          )
          assert processors == {"tokenize": "ewt", "pos": "ewt"}
          assert package == None
  
file_path: stanza/stanza/tests/resources/test_common.py
imports: import os
  import pytest
  import tempfile
  import stanza
  from stanza.resources import common
  from stanza.tests import TEST_MODELS_DIR, TEST_WORKING_DIR
label_desc: Use image node_id 5 for calling a global function with example usage: test_process_pipeline_parameters() without return types