code: def test_cmap_generator_function() -> None:
      assert pal.viridis(256) == pal.Viridis256
      assert pal.magma(256) == pal.Magma256
      assert pal.plasma(256) == pal.Plasma256
      assert pal.inferno(256) == pal.Inferno256
      assert pal.gray(256) == pal.Greys256
      assert pal.grey(256) == pal.Greys256
      assert pal.turbo(256) == pal.Turbo256
      assert (
          pal.diverging_palette(
              pal.Reds9, pal.Greys9, n=18, midpoint=0.5
          )
          == pal.Reds9 + pal.Greys9[::-1]
      )
  
file_path: bokeh/tests/unit/bokeh/test_palettes.py
imports: from __future__ import annotations
  import pytest
  import bokeh.palettes
label_desc: Use image node_id 1 for calling a global function with example usage: test_cmap_generator_function() without return types