code: def test_SumApprox_trivial():
      x = symbols("x")
      expr1 = 1 + x
      sum_approx = SumApprox(bounds={x: (-1e-20, 1e-20)}, reltol=1e-16)
      apx1 = optimize(expr1, [sum_approx])
      assert apx1 - 1 == 0
  
file_path: sympy/sympy/codegen/tests/test_approximations.py
imports: import math
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.exponential import exp
  from sympy.codegen.rewriting import optimize
  from sympy.codegen.approximations import SumApprox, SeriesApprox
label_desc: Use image node_id 1 for calling a global function with example usage: test_SumApprox_trivial() without return types