code: def test_color(group: bcg.ColorGroup) -> None:
      assert group in bcg.__all__
      g = getattr(bcg, group)
      ref = globals().get("_" + group)
      assert len(g) == len(ref)
      for x in ref:
          assert getattr(g, x, None) is not None
  
imports: from __future__ import annotations
  import pytest
  import bokeh.colors.groups
label_desc: Use image node_id 2 for calling a global function with example usage: test_color(group) without return types