code: def test_subclass_pivot(self):
      # GH 15564
      df = tm.SubclassedDataFrame(
          {
              "index": ["A", "B", "C", "C", "B", "A"],
              "columns": ["One", "One", "One", "Two", "Two", "Two"],
              "values": [1.0, 2.0, 3.0, 3.0, 2.0, 1.0],
          }
      )
  
      pivoted = df.pivot(
          index="index", columns="columns", values="values"
      )
  
      expected = tm.SubclassedDataFrame(
          {
              "One": {"A": 1.0, "B": 2.0, "C": 3.0},
              "Two": {"A": 1.0, "B": 2.0, "C": 3.0},
          }
      )
  
      expected.index.name, expected.columns.name = "index", "columns"
  
      tm.assert_frame_equal(pivoted, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestDataFrameSubclassing obj's underlying member method code with example usage: obj.test_subclass_pivot() without return types