code: def test_marginal_kind__get_marginal_layers():
      kind_to_geom_map = {
          "dens": "area",
          "density": "area",
          "hist": "histogram",
          "histogram": "histogram",
          "box": "boxplot",
          "boxplot": "boxplot",
      }
      for geom_kind, geom_name in kind_to_geom_map.items():
          spec_dict = _get_marginal_layers(
              **_get_marginal_layers_props(
                  marginal="{0}:r".format(geom_kind)
              )
          )[0].as_dict()
          assert geom_name == spec_dict["geom"]
  
      with pytest.raises(Exception):
          _get_marginal_layers(
              **_get_marginal_layers_props(marginal="point")
          )
  
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 12 for calling a global function with example usage: test_marginal_kind__get_marginal_layers() without return types