code: def test_calculation_is_correct__get_bin_params_2d():
      binwidth2d, bins2d = _get_bin_params_2d(
          [0, -10, 10, 50, -5], [0, 1, 0, -1, -2], None, None
      )
      assert [2.0, 2.0] == binwidth2d
      assert bins2d is None
  
      binwidth2d, bins2d = _get_bin_params_2d(
          [100, 100, 99, 100, 100], [0, 1, 0, -1, -2], None, None
      )
      assert [0.1, 0.1] == binwidth2d
      assert bins2d is None
  
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 4 for calling a global function with example usage: test_calculation_is_correct__get_bin_params_2d() without return types