code: def test_mapped_alignment(self):
      x = [1, 2]
      p = Plot(x=x, y=x, halign=x, valign=x, text=x).add(Text()).plot()
      ax = p._figure.axes[0]
      t1, t2 = self.get_texts(ax)
      assert t1.get_horizontalalignment() == "left"
      assert t2.get_horizontalalignment() == "right"
      assert t1.get_verticalalignment() == "top"
      assert t2.get_verticalalignment() == "bottom"
  
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 5 for calling the TestText obj's underlying member method code with example usage: obj.test_mapped_alignment() without return types