code: def test_defaultdict_config():
      """
      Test that you can pass in a defaultdict for the lang_configs argument
      """
      lang_configs = defaultdict(lambda: dict(processors="tokenize"))
      run_multilingual_pipeline(
          en_has_dependencies=False,
          fr_has_dependencies=False,
          lang_configs=lang_configs,
      )
  
      lang_configs = defaultdict(lambda: dict(processors="tokenize"))
      lang_configs["en"] = {"processors": "tokenize,pos,lemma,depparse"}
      run_multilingual_pipeline(
          en_has_dependencies=True,
          fr_has_dependencies=False,
          lang_configs=lang_configs,
      )
  
file_path: stanza/stanza/tests/langid/test_multilingual.py
imports: from collections import defaultdict
  import pytest
  from stanza.pipeline.multilingual import MultilingualPipeline
  from stanza.tests import TEST_MODELS_DIR
label_desc: Use image node_id 6 for calling a global function with example usage: test_defaultdict_config() without return types