code: def _axes_get_size_inches(ax: Axes) -> TupleFloat2:
      """
      Size of axes in inches
  
      Parameters
      ----------
      ax : axes
          Axes
  
      Returns
      -------
      out : tuple[float, float]
          (width, height) of ax in inches
      """
      fig = ax.get_figure()
      bbox = ax.get_window_extent().transformed(
          fig.dpi_scale_trans.inverted()  # pyright: ignore
      )
      return bbox.width, bbox.height
  
imports: from __future__ import annotations
  import typing
  from collections import Counter
  from contextlib import suppress
  from warnings import warn
  import numpy
  from .._utils import SIZE_FACTOR, make_line_segments, match, to_rgba
  from ..doctools import document
  from ..exceptions import PlotnineWarning
  from .geom import geom
label_desc: Use image node_id 4 for calling a global function with example usage: _axes_get_size_inches(ax) and returns: bbox,  bbox