code: def test_df_stack_multiindex_column_axis_pd_example(level):
      columns = pd.MultiIndex.from_tuples(
          [
              ("A", "cat", "long"),
              ("B", "cat", "long"),
              ("A", "dog", "short"),
              ("B", "dog", "short"),
          ],
          names=["exp", "animal", "hair_length"],
      )
  
      df = pd.DataFrame(np.random.randn(4, 4), columns=columns)
  
      expect = df.stack(level=level)
      got = cudf.from_pandas(df).stack(level=level)
  
      assert_eq(expect, got)
  
imports: import re
  from itertools import chain
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import melt
  from cudf.core.buffer.spill_manager import get_global_manager
  from cudf.testing._utils import ALL_TYPES, DATETIME_TYPES, NUMERIC_TYPES, assert_eq
label_desc: Use image node_id 7 for calling a global function with example usage: test_df_stack_multiindex_column_axis_pd_example(level) without return types