code: def test_fma():
      x, y, z = symbols("x y z")
  
      # Expand
      assert fma(x, y, z).expand(func=True) - x * y - z == 0
  
      expr = fma(17 * x, 42 * y, 101 * z)
  
      # Diff
      assert expr.diff(x) - expr.expand(func=True).diff(x) == 0
      assert expr.diff(y) - expr.expand(func=True).diff(y) == 0
      assert expr.diff(z) - expr.expand(func=True).diff(z) == 0
  
      assert expr.diff(x) - 17 * 42 * y == 0
      assert expr.diff(y) - 17 * 42 * x == 0
      assert expr.diff(z) - 101 == 0
  
file_path: sympy/sympy/codegen/tests/test_cfunctions.py
imports: from sympy.core.numbers import Rational, pi
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.functions.elementary.exponential import exp, log
  from sympy.codegen.cfunctions import expm1, log1p, exp2, log2, fma, log10, Sqrt, Cbrt, hypot
  from sympy.core.function import expand_log
label_desc: Use image node_id 5 for calling a global function with example usage: test_fma() without return types