code: def _add_inset_axes(
      parent_axes, axes_class, axes_kwargs, axes_locator
  ):
      """Helper function to add an inset axes and disable navigation in it."""
      if axes_class is None:
          axes_class = HostAxes
      if axes_kwargs is None:
          axes_kwargs = {}
      inset_axes = axes_class(
          parent_axes.figure,
          parent_axes.get_position(),
          **{
              "navigate": False,
              **axes_kwargs,
              "axes_locator": axes_locator,
          },
      )
      return parent_axes.figure.add_axes(inset_axes)
  
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 1 for calling a global function with example usage: _add_inset_axes(parent_axes, axes_class, axes_kwargs, axes_locator) and returns: parent_axes