code: def one_vs_all_func(classes, table, TP, TN, FP, FN, class_name):
      """
      One-vs-all mode handler.
  
      :param classes: confusion matrix classes
      :type classes: list
      :param table: input confusion matrix
      :type table: dict
      :param TP: true positive
      :type TP: dict
      :param TN: true negative
      :type TN: dict
      :param FP: false positive
      :type FP: dict
      :param FN: false negative
      :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]
  
imports: from __future__ import division
  import sys
  import math
  import numpy
  import re
  from .pycm_param import *
  from .pycm_error import pycmMatrixError
  from warnings import warn
  from functools import wraps
label_desc: Use image node_id 10 for calling a global function with example usage: one_vs_all_func(classes, table, TP, TN, FP, FN, class_name) and returns: list, list