old_contents: import threading
  from functools import partial
  
  
  class LocalStorage(dict):
      """
      Store all context into the same dict
      """
      thread_context_map = {}
  
      @classmethod
      def load_context(cls, name):
          print(cls.thread_context_map)
          return getattr(cls.thread_context_map[str(threading.current_thread().ident)], name)
  
      @classmethod
      def push(cls, identify, ctx):
          cls.thread_context_map[str(identify)] = ctx
  
  
  class LocalProxy:
      """
      Inspired by flask
      """
      def __init__(self, fun):
          self.fun = fun
  
      def __getattr__(self, item):
          if not hasattr(self.fun(), item):
              raise AttributeError
          return getattr(self.fun(), item)
  
  
  request = LocalProxy(partial(LocalStorage.load_context, 'request'))
  response = LocalProxy(partial(LocalStorage.load_context, 'response'))
  
new_contents: import threading
  from functools import partial
  
  
  # TODO I don't make sure the code as follows is right because they passed my test, and i need help to rewrite this part
  
  class LocalStorage(dict):
      """
      Store all context into the same dict
      """
      thread_context_map = {}
  
      @classmethod
      def load_context(cls, name):
          print(cls.thread_context_map)
          return getattr(cls.thread_context_map[str(threading.current_thread().ident)], name)
  
      @classmethod
      def push(cls, identify, ctx):
          cls.thread_context_map[str(identify)] = ctx
  
  
  class LocalProxy:
      """
      Inspired by flask
      """
  
      def __init__(self, fun):
          self.fun = fun
  
      def __getattr__(self, item):
          if not hasattr(self.fun(), item):
              raise AttributeError
          return getattr(self.fun(), item)
  
  
  request = LocalProxy(partial(LocalStorage.load_context, 'request'))
  response = LocalProxy(partial(LocalStorage.load_context, 'response'))
  
subject: Add a TODO and I need help here.