code: def _get_axes_aspect(ax):
      aspect = ax.get_aspect()
      # when aspec is "auto", consider it as 1.
      if aspect in ("normal", "auto"):
          aspect = 1.0
      elif aspect == "equal":
          aspect = 1
      else:
          aspect = float(aspect)
  
      return aspect
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib.cbook
  from matplotlib.axes import Axes
label_desc: Use image node_id 1 for calling a global function with example usage: _get_axes_aspect(ax) and returns: aspect