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