code: def set_context(context):
      
      global _context
      _context = {k: v for k, v in context.items()}
docs: Sets the current global context dictionary. All the attributes to be set
      should be set. Otherwise, it will result in unpredictable behavior.