builder pattern oop_html_ form_ generator py class htmlfield(object)def __init__(self**kwargs)self html "if kwargs['field_type'="text_field"self html self construct_text_field(kwargs["label"]kwargs["field_name"]elif kwargs['field_type'="checkbox"self html self construct_checkbox(kwargs["field_id"]kwargs["value"]kwargs["label"]def construct_text_field(selflabelfield_name)return '{ }:formatlabelfield_name def construct_checkbox(selffield_idvaluelabel)return { }formatfield_idvaluelabel def __str__(self)return self html def generate_webform(field_dict_list)generated_field_list [for field in field_dict_listtrygenerated_field_list append(str(htmlfield(**field))except exception as eprint("error{}format( )