code: def test_tile_params__get_geom2d_layer():
      def get_spec_dict(binwidth2d=None, bins2d=None):
          return _get_geom2d_layer(
              **_get_geom2d_layer_props(
                  geom_kind="tile", binwidth2d=binwidth2d, bins2d=bins2d
              )
          ).as_dict()
  
      spec_dict = get_spec_dict()
      assert "binwidth" not in spec_dict
      assert "bins" not in spec_dict
  
      spec_dict = get_spec_dict(binwidth2d=[2.0, 3.0])
      assert [2.0, 3.0] == spec_dict["binwidth"]
      assert "bins" not in spec_dict
  
      spec_dict = get_spec_dict(bins2d=[2, 3])
      assert "binwidth" not in spec_dict
      assert [2, 3] == spec_dict["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 7 for calling a global function with example usage: test_tile_params__get_geom2d_layer() and returns: _get_geom2d_layer