<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_min_max(self, file):
 """ Writes minimum and maximum values to a table. """

        report = CaseReport(self.case)

        col1_header = "Attribute"
        col1_width  = 19
        col2_header = "Minimum"
        col3_header = "Maximum"
        col_width   = 22

        sep = "="*col1_width +" "+ "="*col_width +" "+ "="*col_width + "\n"

        # Row headers
        file.write(sep)

        file.write("%s" % col1_header.center(col1_width))
        file.write(" ")
        file.write("%s" % col2_header.center(col_width))
        file.write(" ")
        file.write("%s" % col3_header.center(col_width))
        file.write("\n")

        file.write(sep)

        # Rows
        min_val, min_i = getattr(report, "min_v_magnitude")
        max_val, max_i = getattr(report, "max_v_magnitude")
        file.write("%s %7.3f p.u. @ bus %2d %7.3f p.u. @ bus %2d\n" %
            ("Voltage Amplitude".ljust(col1_width),
             min_val, min_i, max_val, max_i))

        min_val, min_i = getattr(report, "min_v_angle")
        max_val, max_i = getattr(report, "max_v_angle")
        file.write("%s %16.3f %16.3f\n" %
            ("Voltage Phase Angle".ljust(col1_width), min_val, max_val))

        file.write(sep)
        file.write("\n")

        del report