code: def __enter__(self):
      name = self.name
      value = self.value
      config = self.config
      is_local = hasattr(config._local, name)
      if is_local:
          self.old_value = getattr(config, name)
          self.is_local = is_local
  
      setattr(config, name, value)
  
imports: import sys
  import threading
  import typing
  from chainer import types
label_desc: Use image node_id 2 for calling the _ConfigContext obj's underlying member method code with example usage: obj.__enter__() without return types