code: def _get_axes_aspect(ax):
      aspect = ax.get_aspect()
      if aspect == "auto":
          aspect = 1.0
      return aspect
  
imports: from numbers import Real
  from matplotlib import _api
  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