def parse_form_response(form_dict: Dict[(str, str)], form_fields: Dict[(str, str)], labels: List[str]):
    'Transform a Kobo form dictionary into a format that is used by the frontend.'
    form_data = {k: parse_form_field(form_dict.get(k), v) for (k, v) in labels.items() if (k not in (form_fields.get('geom'), form_fields.get('datetime')))}
    datetime_field = form_fields.get('datetime')
    datetime_value = parse_form_field(form_dict.get(datetime_field), labels.get(datetime_field))
    geom_field = form_fields.get('geom')
    latlon_dict = parse_form_field(form_dict.get(geom_field), labels.get(geom_field))
    status = form_dict.get('_validation_status').get('label', None)
    form_data = {**form_data, **latlon_dict, 'date': datetime_value, 'status': status}
    return form_data
Transform a Kobo form dictionary into a format that is used by the frontend.
def parse_form_response(form_dict: Dict[(str, str)], form_fields: Dict[(str, str)], labels: List[str]):
    
    form_data = {k: parse_form_field(form_dict.get(k), v) for (k, v) in labels.items() if (k not in (form_fields.get('geom'), form_fields.get('datetime')))}
    datetime_field = form_fields.get('datetime')
    datetime_value = parse_form_field(form_dict.get(datetime_field), labels.get(datetime_field))
    geom_field = form_fields.get('geom')
    latlon_dict = parse_form_field(form_dict.get(geom_field), labels.get(geom_field))
    status = form_dict.get('_validation_status').get('label', None)
    form_data = {**form_data, **latlon_dict, 'date': datetime_value, 'status': status}
    return form_data