builder pattern def construct(selffield_list)for field in field_listif field["field_type"="text_field"self _builder add_text_field(fieldelif field["field_type"="checkbox"self _builder add_checkbox(fieldelif field["field_type"="button"self _builder add_button(fieldif __name__ ="__main__"director formdirector(html_form_builder htmlformbuilder(director set_builder(html_form_builderfield_list "field_type""text_field""label""best text you have ever written""field_name""field one}"field_type""checkbox""field_id""check_it""value"" ""label""check for on"}"field_type""text_field""label""another text field""field_name""field one}"field_type""button""text""done