code: def test_agg_let(self):
      agg = ir.ApplyAggOp("AggOp", [], [ir.Ref("foo", tint32)])
      sum = ir.ApplyBinaryPrimOp("+", agg, agg)
      agglet = ir.AggLet("foo", ir.I32(2), sum, False)
      expected = (
          "(AggLet foo False (I32 2)"
          " (Let __cse_1 (ApplyAggOp AggOp () ((Ref foo)))"
          " (ApplyBinaryPrimOp `+` (Ref __cse_1) (Ref __cse_1))))"
      )
      assert expected == CSERenderer()(agglet)
  
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 10 for calling the CSETests obj's underlying member method code with example usage: obj.test_agg_let() without return types