code: def get_text_position_and_inner_alignment(ax, pos, scale=default_text_relative_padding, with_transAxes_kwargs=True):
      
      xy = get_text_position_in_ax_coord(ax,pos,scale=scale)
      alignment_fontdict = get_text_alignment(pos)
      if with_transAxes_kwargs: alignment_fontdict = {**alignment_fontdict, **{'transform':ax.transAxes}}
      return xy, alignment_fontdict
docs: Return text position and its alignment in its bounding box.
      
      The returned position is given in Axes coordinate,
      as defined in matplotlib documentation on transformation.
  
      The returned alignment is given in dictionary,
      which can be put as a fontdict to text-relavent method.