code: def test_missing_config_raises():
      ex = Experiment("exp")
      ex.main(lambda a: None)
      with pytest.raises(MissingConfigError):
          ex.run()
  
file_path: sacred/tests/test_exceptions.py
imports: import re
  from sacred import Ingredient, Experiment
  from sacred.utils import CircularDependencyError, ConfigAddedError, MissingConfigError, NamedConfigNotFoundError, format_filtered_stacktrace, format_sacred_error, SacredError
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_missing_config_raises() without return types