def _warning_for_deprecated_user_based_rules(rules):
for rule in rules:<EOL><INDENT>if [resource for resource in USER_BASED_RESOURCES<EOL>if resource in rule[<NUM_LIT:0>]]:<EOL><INDENT>continue<EOL><DEDENT>if '<STR_LIT>' in KEY_EXPR.findall(rule[<NUM_LIT:1>]):<EOL><INDENT>LOG.warning(_LW("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"), rule[<NUM_LIT:0>])<EOL><DEDENT><DEDENT>
Warning user based policy enforcement used in the rule but the rule
    doesn't support it.