code: def test_config_dict_raises_on_invalid_keys(key):
      with pytest.raises(KeyError):
          ConfigDict({key: True})
  
imports: import pytest
  import sacred.optional
  from sacred.config import ConfigDict
  from sacred.config.custom_containers import DogmaticDict, DogmaticList
label_desc: Use image node_id 5 for calling a global function with example usage: test_config_dict_raises_on_invalid_keys(key) without return types