code: def tight_bbox_in_figure_space(
      artist: Artist, fig: Figure, renderer: RendererBase
  ) -> Bbox:
      """
      Bounding box of artist in figure coordinates
      """
      box = artist.get_tightbbox(renderer) or ZEROS_BBOX
      return fig.transFigure.inverted().transform_bbox(box)
  
imports: from __future__ import annotations
  import typing
  from .transforms import ZEROS_BBOX
label_desc: Use image node_id 2 for calling a global function with example usage: tight_bbox_in_figure_space(artist, fig, renderer) and returns: fig