code: def transpose_func(classes, table):
      """
      Transpose table.
  
      :param classes: confusion matrix classes
      :type classes: list
      :param table: input confusion matrix
      :type table: dict
      :return: transposed table as dict
      """
      transposed_table = {k: table[k].copy() for k in classes}
      for i, item1 in enumerate(classes):
          for j, item2 in enumerate(classes):
              if i > j:
                  temp = transposed_table[item1][item2]
                  transposed_table[item1][item2] = transposed_table[
                      item2
                  ][item1]
                  transposed_table[item2][item1] = temp
      return transposed_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 14 for calling a global function with example usage: transpose_func(classes, table) and returns: transposed_table