code: def zoomed_inset_axes(
      parent_axes,
      zoom,
      loc="upper right",
      bbox_to_anchor=None,
      bbox_transform=None,
      axes_class=None,
      axes_kwargs=None,
      borderpad=0.5,
  ):
      """
      Create an anchored inset axes by scaling a parent axes. For usage, also see
      :doc:`the examples </gallery/axes_grid1/inset_locator_demo2>`.
  
      Parameters
      ----------
      parent_axes : `~matplotlib.axes.Axes`
          Axes to place the inset axes.
  
      zoom : float
          Scaling factor of the data axes. *zoom* > 1 will enlarge the
          coordinates (i.e., "zoomed in"), while *zoom* < 1 will shrink the
          coordinates (i.e., "zoomed out").
  
      loc : str, default: 'upper right'
          Location to place the inset axes.  Valid locations are
          'upper left', 'upper center', 'upper right',
          'center left', 'center', 'center right',
          'lower left', 'lower center', 'lower right'.
          For backward compatibility, numeric values are accepted as well.
          See the parameter *loc* of `.Legend` for details.
  
      bbox_to_anchor : tuple or `~matplotlib.transforms.BboxBase`, optional
          Bbox that the inset axes will be anchored to. If None,
          *parent_axes.bbox* is used. If a tuple, can be either
          [left, bottom, width, height], or [left, bottom].
          If the kwargs *width* and/or *height* are specified in relative units,
          the 2-tuple [left, bottom] cannot be used. Note that
          the units of the bounding box are determined through the transform
          in use. When using *bbox_to_anchor* it almost always makes sense to
          also specify a *bbox_transform*. This might often be the axes transform
          *parent_axes.transAxes*.
  
      bbox_transform : `~matplotlib.transforms.Transform`, optional
          Transformation for the bbox that contains the inset axes.
          If None, a `.transforms.IdentityTransform` is used (i.e. pixel
          coordinates). This is useful when not providing any argument to
          *bbox_to_anchor*. When using *bbox_to_anchor* it almost always makes
          sense to also specify a *bbox_transform*. This might often be the
          axes transform *parent_axes.transAxes*. Inversely, when specifying
          the axes- or figure-transform here, be aware that not specifying
          *bbox_to_anchor* will use *parent_axes.bbox*, the units of which are
          in display (pixel) coordinates.
  
      axes_class : `~matplotlib.axes.Axes` type, default: `.HostAxes`
          The type of the newly created inset axes.
  
      axes_kwargs : dict, optional
          Keyword arguments to pass to the constructor of the inset axes.
          Valid arguments include:
  
          %(Axes:kwdoc)s
  
      borderpad : float, default: 0.5
          Padding between inset axes and the bbox_to_anchor.
          The units are axes font size, i.e. for a default font size of 10 points
          *borderpad = 0.5* is equivalent to a padding of 5 points.
  
      Returns
      -------
      inset_axes : *axes_class*
          Inset axes object created.
      """
  
      return _add_inset_axes(
          parent_axes,
          axes_class,
          axes_kwargs,
          AnchoredZoomLocator(
              parent_axes,
              zoom=zoom,
              loc=loc,
              bbox_to_anchor=bbox_to_anchor,
              bbox_transform=bbox_transform,
              borderpad=borderpad,
          ),
      )
  
imports: from matplotlib import _api, _docstring
  from matplotlib.offsetbox import AnchoredOffsetbox
  from matplotlib.patches import Patch, Rectangle
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxTransformTo
  from matplotlib.transforms import IdentityTransform, TransformedBbox
  from .None import axes_size
  from .parasite_axes import HostAxes
label_desc: Use image node_id 3 for calling a global function with example usage: zoomed_inset_axes(parent_axes, zoom, loc, bbox_to_anchor, bbox_transform, axes_class, axes_kwargs, borderpad) and returns: _add_inset_axes