code: def example_plot(ax, fontsize=12):
      ax.plot([1, 2])
      ax.locator_params(nbins=3)
      ax.set_xlabel("x-label", fontsize=fontsize)
      ax.set_ylabel("y-label", fontsize=fontsize)
      ax.set_title("Title", fontsize=fontsize)
  
imports: import warnings
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  from matplotlib.offsetbox import AnchoredOffsetbox, DrawingArea
  from matplotlib.patches import Rectangle
label_desc: Use image node_id 1 for calling a global function with example usage: example_plot(ax, fontsize) without return types