code: def post_deploy_assume_role(assume_role_config, context):
      
      if isinstance(assume_role_config, dict):
          if assume_role_config.get('post_deploy_env_revert'):
              context.restore_existing_iam_env_vars()
docs: Revert to previous credentials, if necessary.