code: def test_gosper_sum_algebraic():
      assert (
          gosper_sum(n**2 + sqrt(2), (n, 0, m))
          == (m + 1) * (2 * m**2 + m + 6 * sqrt(2)) / 6
      )
  
imports: from sympy.core.numbers import Rational, pi
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.functions.combinatorial.factorials import binomial, factorial
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.functions.special.gamma_functions import gamma
  from sympy.polys.polytools import Poly
  from sympy.simplify.simplify import simplify
  from sympy.concrete.gosper import gosper_normal, gosper_sum, gosper_term
  from sympy.abc import a, b, j, k, m, n, r, x
label_desc: Use image node_id 6 for calling a global function with example usage: test_gosper_sum_algebraic() without return types