def METHOD_NAME(self, printer: Printer):
    printer.print_string(" ")
    printer.print_attribute(self.format_str)
    def print_val_and_type(ssa_val: SSAValue):
        printer.print_ssa_value(ssa_val)
        printer.print_string(" : ")
        printer.print_attribute(ssa_val.type)
    if len(self.format_vals) > 0:
        printer.print_string(", ")
        printer.print_list(self.operands, print_val_and_type)
    if len(self.attributes) > 1:
        attrs = self.attributes.copy()
        attrs.pop("format_str")
        printer.print_op_attributes(attrs)