def _prepare_check(context, action, target, pluralized):
 if (target is None):
  target = {}
 match_rule = _build_match_rule(action, target, pluralized)
 credentials = context.to_policy_values()
 return (match_rule, target, credentials)

def _prepare_check ( context , action , target , pluralized ) : if ( target is None ) : target = { } match_rule = _build_match_rule ( action , target , pluralized ) credentials = context . to_policy_values ( ) return ( match_rule , target , credentials )
prepare rule .