code: def test_wide_mode_internal_special_cases(
      df_in, args_in, args_expect, df_expect
  ):
      args_in["data_frame"] = df_in
      args_out = build_dataframe(args_in, go.Scatter)
      df_out = args_out.pop("data_frame")
      assert args_out == args_expect
      assert_frame_equal(
          df_out.sort_index(axis=1),
          df_expect.sort_index(axis=1),
      )
  
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 8 for calling a global function with example usage: test_wide_mode_internal_special_cases(df_in, args_in, args_expect, df_expect) without return types