code: def test_circular_dependency_raises():
      # create experiment with circular dependency
      ing = Ingredient("ing")
      ex = Experiment("exp", ingredients=[ing])
      ex.main(lambda: None)
      ing.ingredients.append(ex)
  
      # run and see if it raises
      with pytest.raises(
          CircularDependencyError, match="exp->ing->exp"
      ):
          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 1 for calling a global function with example usage: test_circular_dependency_raises() without return types