code: def _format_axes(
      ax,
      xlabel,
      ylabel,
      colors,
      fontsize,
      fontname,
      ticks_fontsize=None,
      grid=False,
      pad_for_wedge=False,
  ):
      if xlabel is not None:
          ax.set_xlabel(
              xlabel,
              fontsize=fontsize,
              fontname=fontname,
              color=colors["axis_label"],
          )
      if ylabel is not None:
          ax.set_ylabel(
              ylabel,
              fontsize=fontsize,
              fontname=fontname,
              color=colors["axis_label"],
          )
  
      ax.spines["top"].set_visible(False)
      ax.spines["right"].set_visible(False)
  
      for side in ["top", "right", "bottom", "left"]:
          ax.spines[side].set(linewidth=0.3, color=colors["axis"])
      for tick in ax.get_xticklabels():
          tick.set_fontname(fontname)
      for tick in ax.get_yticklabels():
          tick.set_fontname(fontname)
  
      ax.tick_params(
          axis="both",
          which="major",
          width=0.3,
          labelcolor=colors["tick_label"],
      )
      if ticks_fontsize is not None:
          ax.tick_params(
              axis="both", which="major", labelsize=ticks_fontsize
          )
      if pad_for_wedge:
          ax.tick_params(axis="x", which="major", pad=8)
  
      ax.grid(visible=grid)
  
imports: import os
  import re
  import tempfile
  import warnings
  import xml.etree.cElementTree
  from pathlib import Path
  from sys import platform
  import graphviz
  import numpy
  import pandas
  from matplotlib import patches
  from numpy import ndarray
  from numbers import Number
  from typing import Tuple, Sequence
label_desc: Use image node_id 11 for calling a global function with example usage: _format_axes(ax, xlabel, ylabel, colors, fontsize, fontname, ticks_fontsize, grid, pad_for_wedge) without return types