code: def test_maxima_functions():
      assert parse_maxima("expand( (x+1)^2)") == x**2 + 2 * x + 1
      assert parse_maxima("factor( x**2 + 2*x + 1)") == (x + 1) ** 2
      assert (
          parse_maxima("2*cos(x)^2 + sin(x)^2")
          == 2 * cos(x) ** 2 + sin(x) ** 2
      )
      assert parse_maxima(
          "trigexpand(sin(2*x)+cos(2*x))"
      ) == -1 + 2 * cos(x) ** 2 + 2 * cos(x) * sin(x)
      assert parse_maxima("solve(x^2-4,x)") == [-2, 2]
      assert parse_maxima("limit((1+1/x)^x,x,inf)") == E
      assert parse_maxima("limit(sqrt(-x)/x,x,0,minus)") is -oo
      assert parse_maxima("diff(x^x, x)") == x**x * (1 + log(x))
      assert (
          parse_maxima(
              "sum(k, k, 1, n)",
              name_dict={
                  "n": Symbol("n", integer=True),
                  "k": Symbol("k", integer=True),
              },
          )
          == (n**2 + n) / 2
      )
      assert parse_maxima(
          "product(k, k, 1, n)",
          name_dict={
              "n": Symbol("n", integer=True),
              "k": Symbol("k", integer=True),
          },
      ) == factorial(n)
      assert parse_maxima("ratsimp((x^2-1)/(x+1))") == x - 1
      assert Abs(
          parse_maxima("float(sec(%pi/3) + csc(%pi/3))")
          - 3.154700538379252
      ) < 10 ** (-5)
  
file_path: sympy/sympy/parsing/tests/test_maxima.py
imports: from sympy.parsing.maxima import parse_maxima
  from sympy.core.numbers import E, Rational, oo
  from sympy.core.symbol import Symbol
  from sympy.functions.combinatorial.factorials import factorial
  from sympy.functions.elementary.complexes import Abs
  from sympy.functions.elementary.exponential import log
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.abc import x
label_desc: Use image node_id 3 for calling a global function with example usage: test_maxima_functions() without return types