code: def test_wide_x_or_y(
      tt, df_in, args_in, x, y, color, df_out_exp, transpose
  ):
      if transpose:
          args_in["y"], args_in["x"] = args_in["x"], args_in["y"]
      args_in["data_frame"] = df_in
      args_out = build_dataframe(args_in, tt)
      df_out = args_out.pop("data_frame").sort_index(axis=1)
      assert_frame_equal(
          df_out, pd.DataFrame(df_out_exp).sort_index(axis=1)
      )
      if transpose:
          args_exp = dict(x=y, y=x, color=color)
      else:
          args_exp = dict(x=x, y=y, color=color)
      if tt not in [go.Histogram2dContour, go.Histogram2d]:
          orientation_exp = args_in["orientation"]
          if (args_in["x"] is None) != (
              args_in["y"] is None
          ) and tt != go.Histogram:
              orientation_exp = "h" if transpose else "v"
          args_exp["orientation"] = orientation_exp
      assert args_out == args_exp
  
imports: import plotly.express
  import plotly.graph_objects
  import pandas
  import numpy
  from plotly.express._core import build_dataframe, _is_col_list
  from pandas.testing import assert_frame_equal
  import pytest
  import warnings
label_desc: Use image node_id 5 for calling a global function with example usage: test_wide_x_or_y(tt, df_in, args_in, x, y, color, df_out_exp, transpose) without return types