code: def test_download_not_repeated():
      """
      Test that a model is only downloaded once if it already matches the expected model from the resources file
      """
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          stanza.download(
              "en",
              model_dir=test_dir,
              processors="tokenize",
              package="combined",
          )
  
          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 == ["mwt", "tokenize"]
          tokenize_path = os.path.join(
              en_dir, "tokenize", "combined.pt"
          )
          mod_time = os.path.getmtime(tokenize_path)
  
          pipe = stanza.Pipeline(
              "en",
              model_dir=test_dir,
              processors="tokenize",
              package={"tokenize": "combined"},
          )
          assert os.path.getmtime(tokenize_path) == mod_time
  
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 6 for calling a global function with example usage: test_download_not_repeated() without return types