def pred_decision_field(result_sorted, pred_decision):
    """ Generate prediction decision field

    Parameters
    ----------
    result_sorted : list[dict]
        list of results sorted by rowId
    pred_decision : str
        column name which should contain prediction decision (label)

    Returns
    -------
    header: list[str]
    row_generator: iterator
    """

    return [pred_decision], (
        [row.get('prediction')]
        for row in result_sorted
    )