code: def test_download_missing_resources():
      """
      Test that the pipeline will automatically download missing models
      """
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          pipe = stanza.Pipeline(
              "en",
              model_dir=test_dir,
              processors="tokenize,ner",
              package={
                  "tokenize": "combined",
                  "ner": "ontonotes_charlm",
              },
          )
  
          assert sorted(os.listdir(test_dir)) == [
              "en",
              "resources.json",
          ]
          en_dir = os.path.join(test_dir, "en")
          en_dir_listing = sorted(os.listdir(en_dir))
          assert en_dir_listing == [
              "backward_charlm",
              "forward_charlm",
              "mwt",
              "ner",
              "pretrain",
              "tokenize",
          ]
          assert os.listdir(os.path.join(en_dir, "ner")) == [
              "ontonotes_charlm.pt"
          ]
  
imports: import pytest
  import shutil
  import tempfile
  import stanza
  from stanza.tests import *
  from stanza.pipeline import core
  from stanza.resources.common import get_md5, load_resources_json
label_desc: Use image node_id 3 for calling a global function with example usage: test_download_missing_resources() without return types