code: def test_download_non_default():
      """
      Test the download path for a single file rather than the default zip
  
      The expectation is that an NER model will also download two charlm models.
      If that layout changes on purpose, this test will fail and will need to be updated
      """
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          stanza.download(
              "en",
              model_dir=test_dir,
              processors="ner",
              package="ontonotes_charlm",
              verbose=False,
          )
          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",
              "ner",
              "pretrain",
          ]
          assert os.listdir(os.path.join(en_dir, "ner")) == [
              "ontonotes_charlm.pt"
          ]
          for i in en_dir_listing:
              assert len(os.listdir(os.path.join(en_dir, i))) == 1
  
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 3 for calling a global function with example usage: test_download_non_default() without return types