<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def one_vs_all_func(classes, table, TP, TN, FP, FN, class_name):
 """ One-Vs-All mode handler. :param classes: classes :type classes : list :param table: input matrix :type table : dict :param TP: true positive dict for all classes :type TP : dict :param TN: true negative dict for all classes :type TN : dict :param FP: false positive dict for all classes :type FP : dict :param FN: false negative dict for all classes :type FN : dict :param class_name : target class name for One-Vs-All mode :type class_name : any valid type :return: [classes , table ] as list """

    try:
        report_classes = [str(class_name), "~"]
        report_table = {str(class_name): {str(class_name): TP[class_name],
                                          "~": FN[class_name]},
                        "~": {str(class_name): FP[class_name],
                              "~": TN[class_name]}}
        return [report_classes, report_table]
    except Exception:
        return [classes, table]