code: def test_exp2():
      e = exp(cos(x)).lseries(x)
      assert next(e) == E
      assert next(e) == -E * x**2 / 2
      assert next(e) == E * x**4 / 6
      assert next(e) == -31 * E * x**6 / 720
  
file_path: sympy/sympy/series/tests/test_lseries.py
imports: from sympy.core.numbers import E
  from sympy.core.singleton import S
  from sympy.functions.elementary.exponential import exp
  from sympy.functions.elementary.hyperbolic import tanh
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.series.order import Order
  from sympy.abc import x, y
label_desc: Use image node_id 4 for calling a global function with example usage: test_exp2() without return types