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