code: def test_1d_to_2d__get_bin_params_2d():
      xs, ys = [0, 1], [2, 3]
  
      binwidth2d, bins2d = _get_bin_params_2d(xs, ys, 1.0, None)
      assert [1.0, 1.0] == binwidth2d
      assert bins2d is None
  
      binwidth2d, bins2d = _get_bin_params_2d(xs, ys, None, 1)
      assert binwidth2d is None
      assert [1, 1] == bins2d
  
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 2 for calling a global function with example usage: test_1d_to_2d__get_bin_params_2d() without return types