code: def test_pivot_compute_pivots(self):
      table = Table(self.rows, self.column_names, self.column_types)
  
      pivot_table = table.pivot(
          "gender", "color", computation=Percent("Count")
      )
  
      pivot_table.print_table(output=sys.stdout)
  
      pivot_rows = (
          ("male", Decimal(50), 0),
          (
              "female",
              Decimal(1) / Decimal(6) * Decimal(100),
              Decimal(1) / Decimal(3) * Decimal(100),
          ),
      )
  
      self.assertColumnNames(pivot_table, ["gender", "blue", "green"])
      self.assertColumnTypes(pivot_table, [Text, Number, Number])
      self.assertRows(pivot_table, pivot_rows)
  
imports: import sys
  from decimal import Decimal
  from agate import Table
  from agate.aggregations import Sum
  from agate.computations import Percent
  from agate.data_types import Number, Text
  from agate.testcase import AgateTestCase
label_desc: Use image node_id 13 for calling the TestPivot obj's underlying member method code with example usage: obj.test_pivot_compute_pivots() without return types