code: def _extend_axes_pad(value):
      # Check whether a list/tuple/array or scalar has been passed
      ret = value
      if not hasattr(ret, "__getitem__"):
          ret = (value, value)
      return ret
  
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 1 for calling a global function with example usage: _extend_axes_pad(value) and returns: ret