code: def test_mathematica():
      d = {
          "- 6x": "-6*x",
          "Sin[x]^2": "sin(x)**2",
          "2(x-1)": "2*(x-1)",
          "3y+8": "3*y+8",
          "ArcSin[2x+9(4-x)^2]/x": "asin(2*x+9*(4-x)**2)/x",
          "x+y": "x+y",
          "355/113": "355/113",
          "2.718281828": "2.718281828",
          "Cos(1/2 * π)": "Cos(π/2)",
          "Sin[12]": "sin(12)",
          "Exp[Log[4]]": "exp(log(4))",
          "(x+1)(x+3)": "(x+1)*(x+3)",
          "Cos[ArcCos[3.6]]": "cos(acos(3.6))",
          "Cos[x]==Sin[y]": "Eq(cos(x), sin(y))",
          "2*Sin[x+y]": "2*sin(x+y)",
          "Sin[x]+Cos[y]": "sin(x)+cos(y)",
          "Sin[Cos[x]]": "sin(cos(x))",
          "2*Sqrt[x+y]": "2*sqrt(x+y)",  # Test case from the issue 4259
          "+Sqrt[2]": "sqrt(2)",
          "-Sqrt[2]": "-sqrt(2)",
          "-1/Sqrt[2]": "-1/sqrt(2)",
          "-(1/Sqrt[3])": "-(1/sqrt(3))",
          "1/(2*Sqrt[5])": "1/(2*sqrt(5))",
          "Mod[5,3]": "Mod(5,3)",
          "-Mod[5,3]": "-Mod(5,3)",
          "(x+1)y": "(x+1)*y",
          "x(y+1)": "x*(y+1)",
          "Sin[x]Cos[y]": "sin(x)*cos(y)",
          "Sin[x]^2Cos[y]^2": "sin(x)**2*cos(y)**2",
          "Cos[x]^2(1 - Cos[y]^2)": "cos(x)**2*(1-cos(y)**2)",
          "x y": "x*y",
          "x  y": "x*y",
          "2 x": "2*x",
          "x 8": "x*8",
          "2 8": "2*8",
          "4.x": "4.*x",
          "4. 3": "4.*3",
          "4. 3.": "4.*3.",
          "1 2 3": "1*2*3",
          " -  2 *  Sqrt[  2 3 *   ( 1   +  5 ) ]  ": "-2*sqrt(2*3*(1+5))",
          "Log[2,4]": "log(4,2)",
          "Log[Log[2,4],4]": "log(4,log(4,2))",
          "Exp[Sqrt[2]^2Log[2, 8]]": "exp(sqrt(2)**2*log(8,2))",
          "ArcSin[Cos[0]]": "asin(cos(0))",
          "Log2[16]": "log(16,2)",
          "Max[1,-2,3,-4]": "Max(1,-2,3,-4)",
          "Min[1,-2,3]": "Min(1,-2,3)",
          "Exp[I Pi/2]": "exp(I*pi/2)",
          "ArcTan[x,y]": "atan2(y,x)",
          "Pochhammer[x,y]": "rf(x,y)",
          "ExpIntegralEi[x]": "Ei(x)",
          "SinIntegral[x]": "Si(x)",
          "CosIntegral[x]": "Ci(x)",
          "AiryAi[x]": "airyai(x)",
          "AiryAiPrime[5]": "airyaiprime(5)",
          "AiryBi[x]": "airybi(x)",
          "AiryBiPrime[7]": "airybiprime(7)",
          "LogIntegral[4]": " li(4)",
          "PrimePi[7]": "primepi(7)",
          "Prime[5]": "prime(5)",
          "PrimeQ[5]": "isprime(5)",
          "Rational[2,19]": "Rational(2,19)",  # test case for issue 25716
      }
  
      for e in d:
          assert parse_mathematica(e) == sympify(d[e])
  
      # The parsed form of this expression should not evaluate the Lambda object:
      assert (
          parse_mathematica("Sin[#]^2 + Cos[#]^2 &[x]")
          == sin(x) ** 2 + cos(x) ** 2
      )
  
      d1, d2, d3 = symbols("d1:4", cls=Dummy)
      assert parse_mathematica("Sin[#] + Cos[#3] &").dummy_eq(
          Lambda((d1, d2, d3), sin(d1) + cos(d3))
      )
      assert parse_mathematica("Sin[#^2] &").dummy_eq(
          Lambda(d1, sin(d1**2))
      )
      assert parse_mathematica("Function[x, x^3]") == Lambda(x, x**3)
      assert parse_mathematica("Function[{x, y}, x^2 + y^2]") == Lambda(
          (x, y), x**2 + y**2
      )
  
file_path: sympy/sympy/parsing/tests/test_mathematica.py
imports: from sympy import sin, Function, symbols, Dummy, Lambda, cos
  from sympy.parsing.mathematica import parse_mathematica, MathematicaParser
  from sympy.core.sympify import sympify
  from sympy.abc import n, w, x, y, z
  from sympy.testing.pytest import raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_mathematica() without return types