code: def axes_gen(
      ax, classes, matrix, title, cmap, number_label, plot_lib
  ):
      """
      Add extra descriptions to axes.
  
      :param ax: confusion matrix axes
      :type ax: matplotlib.axes
      :param classes: confusion matrix classes
      :type classes: list
      :param matrix: the confusion matrix in array form
      :type matrix: numpy.array
      :param title: plot title
      :type title: str
      :param cmap: color map
      :type cmap: matplotlib.colors.ListedColormap
      :param number_label: number label flag
      :type number_label: bool
      :param plot_lib: plotting library
      :type plot_lib: str
      :return: changed axes
      """
      ax.set_title(title)
      positions = list(range(len(classes)))
      if plot_lib == "seaborn":
          positions = list(map(lambda x: x + 0.5, positions))
      ax.set_xticks(positions)
      ax.set_xticklabels(classes)
      ax.set_xlabel("Predicted Classes")
      ax.set_yticks(positions)
      ax.set_yticklabels(classes)
      ax.set_ylabel("Actual Classes")
      if number_label:
          add_number_label(ax, classes, matrix, cmap, plot_lib)
      return ax
  
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 24 for calling a global function with example usage: axes_gen(ax, classes, matrix, title, cmap, number_label, plot_lib) and returns: ax