code: def test_scale_transformed_breaks():
      data = pd.DataFrame({"x": [1, 10, 100, 1000], "y": range(4)})
      p = ggplot(data, aes("x", "y")) + geom_bin_2d(
          breaks=([5, 50, 500], [0.5, 1.5, 2.5])
      )
      out1 = layer_data(p)
      out2 = layer_data(p + scale_x_log10())
      np.testing.assert_allclose(out1.xmax, [50, 500])
      np.testing.assert_allclose(out2.xmax, np.log10([50, 500]))
  
imports: import numpy
  import pandas
  from plotnine import aes, geom_bin_2d, ggplot, scale_x_log10
  from .conftest import layer_data
label_desc: Use image node_id 3 for calling a global function with example usage: test_scale_transformed_breaks() without return types