code: def check_colors(self, part, points, colors, alpha=None):
      rgba = to_rgba_array(colors, alpha)
  
      getter = getattr(points, f"get_{part}colors")
      assert_array_equal(getter(), rgba)
  
imports: from matplotlib.colors import to_rgba, to_rgba_array
  import pytest
  from numpy.testing import assert_array_equal
  from seaborn.palettes import color_palette
  from seaborn._core.plot import Plot
  from seaborn._marks.dot import Dot, Dots
label_desc: Use image node_id 2 for calling the DotBase obj's underlying member method code with example usage: obj.check_colors(part, points, colors, alpha) without return types