def check_is_admin(context):
init()<EOL>credentials = context.to_policy_values()<EOL>target = credentials<EOL>return _ENFORCER.authorize('<STR_LIT>', target, credentials)<EOL>
Check if roles contains 'admin' role according to policy settings.