code: def add_inner_title(ax, title, loc, **kwargs):
      from matplotlib.offsetbox import AnchoredText
      from matplotlib.patheffects import withStroke
  
      prop = dict(
          path_effects=[withStroke(foreground="w", linewidth=3)],
          size=plt.rcParams["legend.fontsize"],
      )
      at = AnchoredText(
          title,
          loc=loc,
          prop=prop,
          pad=0.0,
          borderpad=0.5,
          frameon=False,
          **kwargs,
      )
      ax.add_artist(at)
      return at
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import cbook
  from mpl_toolkits.axes_grid1 import ImageGrid
label_desc: Use image node_id 1 for calling a global function with example usage: add_inner_title(ax, title, loc) and returns: at