def parse_report_for_epoch_metrics(report_dict, metrics=["train_mIoU"]):
    """
    Parse report for given metric information over epoch and add them to list
    Arguments:
        report_dict: dictionalry with raw report data
        metrics: list of metrics to search over epoch
    Returns:
        result: the dictionary of the form  {metric : {"epoch": [], "value": []}
    """

    result = {metric: {"epoch": [], "value": []} for metric in metrics}
    for epoch in report_dict["epoch_metrics"]:
        epoch_num = int(epoch)
        for metric in metrics:
            value = float(report_dict["epoch_metrics"][epoch][metric])
            result[metric]["epoch"].append(epoch_num)
            result[metric]["value"].append(value)

    return result