<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _extract_table_model(table_data, current, tt):
 """ Add in modelNumber and summaryNumber fields if this is a summary table :param dict table_data: Table data :param dict current: LiPD root data :param str tt: Table type "summ", "ens", "meas" :return dict current: Current root data """

    try:
        if tt in ["summ", "ens"]:
            m = re.match(re_sheet, table_data["tableName"])
            if m:
                _pc_num= m.group(1) + "Number"
                current[_pc_num] = m.group(2)
                current["modelNumber"] = m.group(4)
                current["tableNumber"] = m.group(6)
            else:
                logger_ts.error("extract_table_summary: Unable to parse paleo/model/table numbers")
    except Exception as e:
        logger_ts.error("extract_table_summary: {}".format(e))
    return current