code: def transpose_func(classes, table):
      
      transposed_table = table
      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
docs: Transpose table.
  
      :param classes: classes
      :type classes : list
      :param table: input matrix
      :type table : dict
      :return: transposed table as dict