code: def test_pivot_by_lambda_group_name_sequence_invalid(self):
      table = Table(self.rows, self.column_names, self.column_types)
  
      with self.assertRaises(ValueError):
          table.pivot(["race", "gender"], key_name="foo")
  
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 5 for calling the TestPivot obj's underlying member method code with example usage: obj.test_pivot_by_lambda_group_name_sequence_invalid() without return types