code: def test_flatten_levels_false():
      """Test output if `flatten_levels` is False."""
  
      df_collapse = pd.DataFrame(
          {
              "foo": ["one", "one", "one", "two", "two", "two"],
              "bar": ["A", "B", "C", "A", "B", "C"],
              "baz": [1, 2, 3, 4, 5, 6],
              "zoo": ["x", "y", "z", "q", "w", "t"],
          }
      )
  
      result = df_collapse.pivot_wider(
          index="foo",
          names_from="bar",
          values_from=["baz", "zoo"],
          flatten_levels=False,
      )
  
      expected_output = df_collapse.pivot(  # noqa: PD010
          index="foo", columns="bar", values=["baz", "zoo"]
      )
  
      assert_frame_equal(
          result,
          expected_output,
      )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 21 for calling a global function with example usage: test_flatten_levels_false() without return types