code: def series(L):
      """
      Normalizes the series.
      """
      r = 0
      for b in L:
          r += integ(b) * b
      return r
  
file_path: sympy/examples/advanced/gibbs_phenomenon.py
imports: from sympy import var, sqrt, integrate, conjugate, seterr, Abs, pprint, I, pi, sin, cos, sign, lambdify, Integral, S
label_desc: Use image node_id 6 for calling a global function with example usage: series(L) and returns: r