code: def test_barh_xy():
      df = pd.DataFrame({"x": [1, 4, 2, 3, 5], "y": [6, 3, 4, 5, 2]})
  
      plot = df.vgplot.barh(x="x", y="y")
      utils.validate_vegalite(plot)
      assert plot.mark == "bar"
      utils.check_encodings(plot, x="value", y="x", color="variable")
      data = plot.data
      assert set(pd.unique(data["variable"])) == {"y"}
      assert plot["encoding"]["x"]["stack"] is None
  
imports: import pytest
  import pandas
  import altair
  from pdvega.tests import utils
label_desc: Use image node_id 14 for calling a global function with example usage: test_barh_xy() without return types