code: def _annotate_and_decorate_axis(
      ax,
      labelsize="x-large",
      ticklabelsize="x-large",
      xticks=None,
      xticklabels=None,
      yticks=None,
      legend=False,
      grid_alpha=0.2,
      legendsize="x-large",
      xlabel="",
      ylabel="",
      wrect=10,
      hrect=10,
  ):
      """Annotates and decorates the plot."""
      ax.set_xlabel(xlabel, fontsize=labelsize)
      ax.set_ylabel(ylabel, fontsize=labelsize)
      if xticks is not None:
          ax.set_xticks(ticks=xticks)
          ax.set_xticklabels(xticklabels)
      if yticks is not None:
          ax.set_yticks(yticks)
      ax.grid(True, alpha=grid_alpha)
      ax = _decorate_axis(
          ax, wrect=wrect, hrect=hrect, ticklabelsize=ticklabelsize
      )
      if legend:
          ax.legend(fontsize=legendsize)
      return ax
  
file_path: rliable/rliable/plot_utils.py
imports: import matplotlib.pyplot
  import numpy
  import seaborn
label_desc: Use image node_id 3 for calling a global function with example usage: _annotate_and_decorate_axis(ax, labelsize, ticklabelsize, xticks, xticklabels, yticks, legend, grid_alpha, legendsize, xlabel, ylabel, wrect, hrect) and returns: ax