code: def draw_text(ax):
      """
      Draw two text-boxes, anchored by different corners to the upper-left
      corner of the figure.
      """
      from matplotlib.offsetbox import AnchoredText
  
      at = AnchoredText(
          "Figure 1a",
          loc="upper left",
          prop=dict(size=8),
          frameon=True,
      )
      at.patch.set_boxstyle("round,pad=0.,rounding_size=0.2")
      ax.add_artist(at)
  
      at2 = AnchoredText(
          "Figure 1(b)",
          loc="lower left",
          prop=dict(size=8),
          frameon=True,
          bbox_to_anchor=(0.0, 1.0),
          bbox_transform=ax.transAxes,
      )
      at2.patch.set_boxstyle("round,pad=0.,rounding_size=0.2")
      ax.add_artist(at2)
  
imports: import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: draw_text(ax) without return types