code: def test_widget_load_split_by_preserve_user_settings(
      self, superstore
  ):
      arrays = [
          np.array(
              [
                  "bar",
                  "bar",
                  "bar",
                  "bar",
                  "baz",
                  "baz",
                  "baz",
                  "baz",
                  "foo",
                  "foo",
                  "foo",
                  "foo",
                  "qux",
                  "qux",
                  "qux",
                  "qux",
              ]
          ),
          np.array(
              [
                  "one",
                  "one",
                  "two",
                  "two",
                  "one",
                  "one",
                  "two",
                  "two",
                  "one",
                  "one",
                  "two",
                  "two",
                  "one",
                  "one",
                  "two",
                  "two",
              ]
          ),
          np.array(
              [
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
                  "X",
                  "Y",
              ]
          ),
      ]
      tuples = list(zip(*arrays))
      index = pd.MultiIndex.from_tuples(
          tuples, names=["first", "second", "third"]
      )
      df_both = pd.DataFrame(
          np.random.randn(3, 16), index=["A", "B", "C"], columns=index
      )
      widget = PerspectiveWidget(df_both, columns=["first", "third"])
      assert widget.columns == ["first", "third"]
      assert widget.split_by == ["first", "second", "third"]
      assert widget.group_by == ["index"]
  
file_path: perspective/python/perspective/perspective/tests/widget/test_widget_pandas.py
imports: from datetime import date
  import pandas
  import numpy
  from perspective import Table, PerspectiveWidget
label_desc: Use image node_id 9 for calling the TestWidgetPandas obj's underlying member method code with example usage: obj.test_widget_load_split_by_preserve_user_settings(superstore) without return types