code: def example_plot(ax, fontsize=12, nodec=False):
      ax.plot([1, 2])
      ax.locator_params(nbins=3)
      if not nodec:
          ax.set_xlabel("x-label", fontsize=fontsize)
          ax.set_ylabel("y-label", fontsize=fontsize)
          ax.set_title("Title", fontsize=fontsize)
      else:
          ax.set_xticklabels([])
          ax.set_yticklabels([])
  
imports: import gc
  import numpy
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.transforms
  from matplotlib import gridspec, ticker
label_desc: Use image node_id 1 for calling a global function with example usage: example_plot(ax, fontsize, nodec) without return types