code: def test_color_mapped_alpha(self):
      c = "r"
      values = {"a": 0.2, "b": 0.5, "c": 0.8}
  
      m = self.mark(color=c, alpha=Mappable(1))
      scales = {"alpha": lambda s: np.array([values[s_i] for s_i in s])}
  
      assert resolve_color(
          m, {"alpha": "b"}, "", scales
      ) == mpl.colors.to_rgba(c, 0.5)
  
      df = pd.DataFrame({"alpha": list(values.keys())})
  
      # Do this in two steps for mpl 3.2 compat
      expected = mpl.colors.to_rgba_array([c] * len(df))
      expected[:, 3] = list(values.values())
  
      assert_array_equal(resolve_color(m, df, "", scales), expected)
  
file_path: seaborn/tests/_marks/test_base.py
imports: from dataclasses import dataclass
  import numpy
  import pandas
  import matplotlib
  import pytest
  from numpy.testing import assert_array_equal
  from seaborn._marks.base import Mark, Mappable, resolve_color
label_desc: Use image node_id 10 for calling the TestMappable obj's underlying member method code with example usage: obj.test_color_mapped_alpha() without return types