code: def test_geom_kind__get_geom2d_layer():
      kind_to_geom_map = {
          "point": "point",
          "tile": "bin2d",
          "density2d": "density2d",
          "density2df": "density2df",
      }
      for geom_kind, geom_name in kind_to_geom_map.items():
          spec_dict = _get_geom2d_layer(
              **_get_geom2d_layer_props(geom_kind=geom_kind)
          ).as_dict()
          assert geom_name == spec_dict["geom"]
  
      assert (
          _get_geom2d_layer(**_get_geom2d_layer_props(geom_kind="none"))
          is None
      )
  
      with pytest.raises(Exception):
          _get_geom2d_layer(
              **_get_geom2d_layer_props(geom_kind="density")
          )
  
file_path: lets-plot/python-package/test/plot/test_bistro_common.py
imports: import pytest
  from lets_plot.bistro._plot2d_common import _get_bin_params_2d, _get_geom2d_layer, _get_marginal_layers
label_desc: Use image node_id 6 for calling a global function with example usage: test_geom_kind__get_geom2d_layer() without return types