code: def test_config_context():
      root = _create_test_config()
      root.add(
          "test__config_context",
          "A config var from a test case.",
          configparser.StrParam("test_default"),
      )
      assert hasattr(root, "test__config_context")
      assert root.test__config_context == "test_default"
  
      with root.change_flags(test__config_context="new_value"):
          assert root.test__config_context == "new_value"
          with root.change_flags(
              {"test__config_context": "new_value2"}
          ):
              assert root.test__config_context == "new_value2"
          assert root.test__config_context == "new_value"
      assert root.test__config_context == "test_default"
  
imports: import configparser
  import io
  import pickle
  import pytest
  from pytensor import configdefaults, configparser
  from pytensor.configdefaults import short_platform
  from pytensor.configparser import ConfigParam
label_desc: Use image node_id 6 for calling a global function with example usage: test_config_context() without return types