code: def get_texts(self, ax):
      if ax.texts:
          return list(ax.texts)
      else:
          # Compatibility with matplotlib < 3.5 (I think)
          return [a for a in ax.artists if isinstance(a, MPLText)]
  
file_path: seaborn/tests/_marks/test_text.py
imports: import numpy
  from matplotlib.colors import to_rgba
  from matplotlib.text import Text
  from numpy.testing import assert_array_almost_equal
  from seaborn._core.plot import Plot
  from seaborn._marks.text import Text
label_desc: Use image node_id 1 for calling the TestText obj's underlying member method code with example usage: obj.get_texts(ax) and returns: list, unknown