<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_violations(self, violations):
 """ Print a given set of violations to the standard error output """

        for v in violations:
            line_nr = v.line_nr if v.line_nr else "-"
            self.display.e(u"{0}: {1}".format(line_nr, v.rule_id), exact=True)
            self.display.ee(u"{0}: {1} {2}".format(line_nr, v.rule_id, v.message), exact=True)
            if v.content:
                self.display.eee(u"{0}: {1} {2}: \"{3}\"".format(line_nr, v.rule_id, v.message, v.content),
                                 exact=True)
            else:
                self.display.eee(u"{0}: {1} {2}".format(line_nr, v.rule_id, v.message), exact=True)