code: def test_named_config_not_found_raises():
      ex = Experiment("exp")
      ex.main(lambda: None)
      with pytest.raises(
          NamedConfigNotFoundError,
          match='Named config not found: "not_there". '
          "Available config values are:",
      ):
          ex.run(named_configs=("not_there",))
  
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 4 for calling a global function with example usage: test_named_config_not_found_raises() without return types