code: def _pos_to_bbox(pos, ax):
      """Convert layout position to bbox."""
      import matplotlib.transforms as mtransforms
  
      return mtransforms.TransformedBbox(
          mtransforms.Bbox.from_bounds(*pos),
          ax.transAxes,
      )
  
imports: from copy import deepcopy
  from functools import partial
  import numpy
  from scipy import ndimage
  from .._fiff.pick import channel_type, pick_types
  from ..defaults import _handle_default
  from ..utils import Bunch, _check_option, _clean_names, _is_numeric, _to_rgb, fill_doc
  from .utils import DraggableColorbar, _check_cov, _check_delayed_ssp, _draw_proj_checkbox, _plot_masked_image, _setup_ax_spines, _setup_vmin_vmax, add_background_image, plt_show
label_desc: Use image node_id 17 for calling a global function with example usage: _pos_to_bbox(pos, ax) and returns: mtransforms