code: def test_agg_cse(self):
      table = ir.TableRange(5, 1)
      x = ir.GetField(ir.Ref("row", table.typ.row_type), "idx")
      inner_sum = ir.ApplyBinaryPrimOp("+", x, x)
      agg = ir.ApplyAggOp("AggOp", [], [inner_sum])
      outer_sum = ir.ApplyBinaryPrimOp("+", agg, agg)
      filter = ir.AggFilter(ir.TrueIR(), outer_sum, False)
      table_agg = ir.TableAggregate(
          table, ir.MakeTuple([outer_sum, filter])
      )
      expected = (
          "(TableAggregate (TableRange 5 1)"
          " (AggLet __cse_1 False (GetField idx (Ref row))"
          " (AggLet __cse_3 False (ApplyBinaryPrimOp `+` (Ref __cse_1) (Ref __cse_1))"
          " (Let __cse_2 (ApplyAggOp AggOp () ((Ref __cse_3)))"
          " (MakeTuple (0 1)"
          " (ApplyBinaryPrimOp `+` (Ref __cse_2) (Ref __cse_2))"
          " (AggFilter False (True)"
          " (Let __cse_4 (ApplyAggOp AggOp () ((Ref __cse_3)))"
          " (ApplyBinaryPrimOp `+` (Ref __cse_4) (Ref __cse_4)))))))))"
      )
      assert expected == CSERenderer()(table_agg)
  
imports: import re
  import unittest
  import numpy
  from numpy.testing import assert_array_equal
  import hail
  import hail.ir
  from hail.ir.renderer import CSERenderer
  from hail.expr import construct_expr
  from hail.expr.types import tint32
  from hail.utils.java import Env
  from hail.utils import new_temp_file
  from test.hail.helpers import *
label_desc: Use image node_id 8 for calling the CSETests obj's underlying member method code with example usage: obj.test_agg_cse() without return types