code: def _tick_only(ax, bottom_on, left_on):
      bottom_off = not bottom_on
      left_off = not left_on
      # [l.set_visible(bottom_off) for l in ax.get_xticklabels()]
      # [l.set_visible(left_off) for l in ax.get_yticklabels()]
      # ax.xaxis.label.set_visible(bottom_off)
      # ax.yaxis.label.set_visible(left_off)
      ax.axis["bottom"].toggle(ticklabels=bottom_off, label=bottom_off)
      ax.axis["left"].toggle(ticklabels=left_off, label=left_off)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib.axes
  import matplotlib.cbook
  import matplotlib.ticker
  from matplotlib.gridspec import SubplotSpec
  from .axes_divider import Size, SubplotDivider, LocatableAxes, Divider
  from .colorbar import Colorbar
label_desc: Use image node_id 2 for calling a global function with example usage: _tick_only(ax, bottom_on, left_on) without return types