code: def test_pivot_errors(self):
      psdf = ps.range(10)
  
      with self.assertRaisesRegex(ValueError, "columns should be set"):
          psdf.pivot(index="id")
  
      with self.assertRaisesRegex(ValueError, "values should be set"):
          psdf.pivot(index="id", columns="id")
  
file_path: spark/python/pyspark/pandas/tests/computation/test_pivot.py
imports: import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 3 for calling the FramePivotMixin obj's underlying member method code with example usage: obj.test_pivot_errors() without return types