code: def test_marginal_hist_params__get_marginal_layers():
      def get_spec_dicts(binwidth2d=None, bins2d=None):
          return [
              marginal_layer.as_dict()
              for marginal_layer in _get_marginal_layers(
                  **_get_marginal_layers_props(
                      marginal="hist:tblr",
                      binwidth2d=binwidth2d,
                      bins2d=bins2d,
                  )
              )
          ]
  
      spec_dicts = get_spec_dicts()
      for spec_dict in spec_dicts:
          assert "binwidth" not in spec_dict
          assert "bins" not in spec_dict
  
      spec_dicts = get_spec_dicts(binwidth2d=[2.0, 3.0])
      assert 2.0 == spec_dicts[0]["binwidth"]
      assert "bins" not in spec_dicts[0]
      assert 2.0 == spec_dicts[1]["binwidth"]
      assert "bins" not in spec_dicts[1]
      assert 3.0 == spec_dicts[2]["binwidth"]
      assert "bins" not in spec_dicts[2]
      assert 3.0 == spec_dicts[3]["binwidth"]
      assert "bins" not in spec_dicts[3]
  
      spec_dicts = get_spec_dicts(bins2d=[2, 3])
      assert "binwidth" not in spec_dicts[0]
      assert 2 == spec_dicts[0]["bins"]
      assert "binwidth" not in spec_dicts[1]
      assert 2 == spec_dicts[1]["bins"]
      assert "binwidth" not in spec_dicts[2]
      assert 3 == spec_dicts[2]["bins"]
      assert "binwidth" not in spec_dicts[3]
      assert 3 == spec_dicts[3]["bins"]
  
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 13 for calling a global function with example usage: test_marginal_hist_params__get_marginal_layers() and returns: unknown