code: def test_xy_marginals(px_fn, marginal_x, marginal_y):
      df = px.data.tips()
  
      fig = px_fn(
          df,
          x="total_bill",
          y="tip",
          marginal_x=marginal_x,
          marginal_y=marginal_y,
      )
      assert len(fig.data) == 1 + (marginal_x is not None) + (
          marginal_y is not None
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_xy_marginals(px_fn, marginal_x, marginal_y) without return types