code: def test_wide_mode_internal_bar_exception(orientation):
      df_in = pd.DataFrame(
          dict(a=["q", "r", "s"], b=["t", "u", "v"]), index=[11, 12, 13]
      )
      args_in = dict(
          data_frame=df_in, color=None, orientation=orientation
      )
      args_out = build_dataframe(args_in, go.Bar)
      df_out = args_out.pop("data_frame")
      assert_frame_equal(
          df_out.sort_index(axis=1),
          pd.DataFrame(
              dict(
                  index=[11, 12, 13, 11, 12, 13],
                  variable=["a", "a", "a", "b", "b", "b"],
                  value=["q", "r", "s", "t", "u", "v"],
                  count=[1, 1, 1, 1, 1, 1],
              )
          ).sort_index(axis=1),
      )
      if orientation is None or orientation == "v":
          assert args_out == dict(
              x="value", y="count", color="variable", orientation="v"
          )
      else:
          assert args_out == dict(
              x="count", y="value", color="variable", orientation="h"
          )
  
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 6 for calling a global function with example usage: test_wide_mode_internal_bar_exception(orientation) without return types