code: def test_assert_file_exists():
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          filename = os.path.join(test_dir, "test.txt")
          with pytest.raises(FileNotFoundError):
              common.assert_file_exists(filename)
  
          with open(filename, "w", encoding="utf-8") as fout:
              fout.write("Unban mox opal!")
          # MD5 of the fake model file, not any real model files in the system
          EXPECTED_MD5 = "44dbf21b4e89cea5184615a72a825a36"
          common.assert_file_exists(filename)
          common.assert_file_exists(filename, md5=EXPECTED_MD5)
  
          with pytest.raises(ValueError):
              common.assert_file_exists(filename, md5="12345")
  
          with pytest.raises(ValueError):
              common.assert_file_exists(
                  filename, md5="12345", alternate_md5="12345"
              )
  
          common.assert_file_exists(
              filename, md5="12345", alternate_md5=EXPECTED_MD5
          )
  
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 1 for calling a global function with example usage: test_assert_file_exists() without return types