code: def test_chained_config_scopes_raise_for_undeclared_previous_keys():
      @ConfigScope
      def cfg1():
          a = 10
  
      @ConfigScope
      def cfg2():
          b = a * 2
  
      with pytest.raises(NameError):
          chain_evaluate_config_scopes([cfg1, cfg2])
  
file_path: sacred/tests/test_config/test_config_scope_chain.py
imports: import pytest
  from sacred.config import ConfigScope, ConfigDict, chain_evaluate_config_scopes
label_desc: Use image node_id 4 for calling a global function with example usage: test_chained_config_scopes_raise_for_undeclared_previous_keys() without return types