code: def test_build_df_from_lists():
      # Just lists
      args = dict(x=[1, 2, 3], y=[2, 3, 4], color=[1, 3, 9])
      output = {key: key for key in args}
      df = pd.DataFrame(args)
      args["data_frame"] = None
      out = build_dataframe(args, go.Scatter)
      assert_frame_equal(
          df.sort_index(axis=1), out["data_frame"].sort_index(axis=1)
      )
      out.pop("data_frame")
      assert out == output
  
      # Arrays
      args = dict(
          x=np.array([1, 2, 3]), y=np.array([2, 3, 4]), color=[1, 3, 9]
      )
      output = {key: key for key in args}
      df = pd.DataFrame(args)
      args["data_frame"] = None
      out = build_dataframe(args, go.Scatter)
      assert_frame_equal(
          df.sort_index(axis=1), out["data_frame"].sort_index(axis=1)
      )
      out.pop("data_frame")
      assert out == output
  
imports: import plotly.express
  import plotly.graph_objects
  import numpy
  import pandas
  import pytest
  from packaging import version
  import unittest.mock
  from plotly.express._core import build_dataframe
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 16 for calling a global function with example usage: test_build_df_from_lists() without return types