code: def pts_in_figure_space(fig: Figure, pts: float) -> float:
      """
      Points in figure coordinates
      """
      return fig.transFigure.inverted().transform([0, pts])[1]
  
imports: from __future__ import annotations
  import typing
  from .transforms import ZEROS_BBOX
label_desc: Use image node_id 4 for calling a global function with example usage: pts_in_figure_space(fig, pts) and returns: fig