docs: def check_is_admin(context):
      """Check if roles contains 'admin' role according to policy settings."""
      init()
      credentials = context.to_policy_values()
      target = credentials
      return _ENFORCER.authorize('admin_required', target, credentials)