code: def _set_ticks_on_axis_warn(*args, **kw):
      # a top level function which gets put in at the axes'
      # set_xticks set_yticks by _patch_ax
      warnings.warn("Use the colorbar set_ticks() method instead.")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import xrange, zip
  import warnings
  import numpy
  import matplotlib
  import matplotlib.artist
  import matplotlib.cbook
  import matplotlib.collections
  import matplotlib.colors
  import matplotlib.contour
  import matplotlib.cm
  import matplotlib.gridspec
  import matplotlib.patches
  import matplotlib.path
  import matplotlib.ticker
  import matplotlib.transforms
  import matplotlib._layoutbox
  import matplotlib._constrained_layout
  from matplotlib import docstring
label_desc: Use image node_id 1 for calling a global function with example usage: _set_ticks_on_axis_warn() without return types