code: def test_load_config_file_exception_msg_invalid_ext():
      handle, f_name = tempfile.mkstemp(suffix=".invalid")
      f = os.fdopen(handle, "w")  # necessary for windows
      f.close()
      try:
          exception_msg = re.compile(
              'Configuration file ".*.invalid" has invalid or '
              'unsupported extension ".invalid".'
          )
          with pytest.raises(ValueError) as excinfo:
              load_config_file(f_name)
          assert exception_msg.match(excinfo.value.args[0])
      finally:
          os.remove(f_name)
  
file_path: sacred/tests/test_config/test_config_files.py
imports: import os
  import re
  import tempfile
  import pytest
  from sacred.config.config_files import HANDLER_BY_EXT, load_config_file
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_config_file_exception_msg_invalid_ext() without return types