code: def test_conf_scope_contains_presets():
      @ConfigScope
      def conf_scope(a):
          answer = 2 * a
  
      cfg = conf_scope(preset={"a": 21, "unrelated": True})
      assert set(cfg.keys()) == {"a", "answer", "unrelated"}
      assert cfg["a"] == 21
      assert cfg["answer"] == 42
      assert cfg["unrelated"] is True
  
imports: import pytest
  import sacred.optional
  from sacred.config.config_scope import ConfigScope, dedent_function_body, dedent_line, get_function_body, is_empty_or_comment
  from sacred.config.custom_containers import DogmaticDict, DogmaticList
label_desc: Use image node_id 14 for calling a global function with example usage: test_conf_scope_contains_presets() without return types