builder pattern def __repr__(self)return "{}format("join(self field_list)class htmlformbuilder(abstractformbuilder)def __init__(self)self constructed_object htmlform(def add_text_field(selffield_dict)self constructed_object field_list append'{ }:formatfield_dict['label']field_dict['field_name'def add_checkbox(selfcheckbox_dict)self constructed_object field_list append{ }formatcheckbox_dict['field_id']checkbox_dict['value']checkbox_dict['label'def add_button(selfbutton_dict)self constructed_object field_list append'{}formatbutton_dict['text'class formdirector(director)def __init__(self)director __init__(self