<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_csv_from_model(models, crumbs, csvs):
 """ Get csv from model data :param dict models: Metadata :param str crumbs: Crumbs :param dict csvs: Csv :return dict models: Metadata :return dict csvs: Csv """

    logger_csvs.info("enter get_csv_from_model: {}".format(crumbs))
    _idx = 0
    try:
        for _name, _model in models.items():
            if "distributionTable" in _model:
                models[_name]["distributionTable"], csvs = _get_csv_from_table(_model["distributionTable"], "{}{}{}".format(crumbs, _idx, "distribution"), csvs)

            if "summaryTable" in _model:
                models[_name]["summaryTable"], csvs = _get_csv_from_table(_model["summaryTable"], "{}{}{}".format(crumbs, _idx, "summary"), csvs)

            if "ensembleTable" in _model:
                models[_name]["ensembleTable"], csvs = _get_csv_from_table(_model["ensembleTable"], "{}{}{}".format(crumbs, _idx, "ensemble"), csvs)
            _idx += 1
    except Exception as e:
        print("Error: get_csv_from_model: {}, {}".format(crumbs, e))
        logger_csvs.error("Error: get_csv_from_model: {}, {}".format(crumbs, e))
    return models, csvs