code: def stack_get(self, key):
          
          task = Task.current_task()
          try:
              context = task._context_stack
          except AttributeError:
              return
          if key in context:
              return context[key][-1]
docs: Set a value in a task context stack