def METHOD_NAME(self, rule_args, task_args):
    display.vv("match_task_args: {} on {}".format(rule_args, task_args))
    matched = False
    for a in rule_args:
        for ta_name, ta_value in task_args.items():
            if self._match(a['name'], ta_name):
                if self._match_values(a['values'], ta_value):
                    matched = True
                else:
                    return False
                break
    return matched