code: def test_is_col_list():
      df_input = pd.DataFrame(dict(a=[1, 2], b=[1, 2]))
      assert _is_col_list(df_input, ["a"])
      assert _is_col_list(df_input, ["a", "b"])
      assert _is_col_list(df_input, [[3, 4]])
      assert _is_col_list(df_input, [[3, 4], [3, 4]])
      assert not _is_col_list(df_input, pytest)
      assert not _is_col_list(df_input, False)
      assert not _is_col_list(df_input, ["a", 1])
      assert not _is_col_list(df_input, "a")
      assert not _is_col_list(df_input, 1)
      assert not _is_col_list(df_input, ["a", "b", "c"])
      assert not _is_col_list(df_input, [1, 2])
      df_input = pd.DataFrame([[1, 2], [1, 2]])
      assert _is_col_list(df_input, [0])
      assert _is_col_list(df_input, [0, 1])
      assert _is_col_list(df_input, [[3, 4]])
      assert _is_col_list(df_input, [[3, 4], [3, 4]])
      assert not _is_col_list(df_input, pytest)
      assert not _is_col_list(df_input, False)
      assert not _is_col_list(df_input, ["a", 1])
      assert not _is_col_list(df_input, "a")
      assert not _is_col_list(df_input, 1)
      assert not _is_col_list(df_input, [0, 1, 2])
      assert not _is_col_list(df_input, ["a", "b"])
      df_input = None
      assert _is_col_list(df_input, [[3, 4]])
      assert _is_col_list(df_input, [[3, 4], [3, 4]])
      assert not _is_col_list(df_input, [0])
      assert not _is_col_list(df_input, [0, 1])
      assert not _is_col_list(df_input, pytest)
      assert not _is_col_list(df_input, False)
      assert not _is_col_list(df_input, ["a", 1])
      assert not _is_col_list(df_input, "a")
      assert not _is_col_list(df_input, 1)
      assert not _is_col_list(df_input, [0, 1, 2])
      assert not _is_col_list(df_input, ["a", "b"])
  
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 1 for calling a global function with example usage: test_is_col_list() without return types