code: def test_inline_function():
      from sympy.tensor import IndexedBase, Idx
      from sympy.core.symbol import symbols
  
      n, m = symbols("n m", integer=True)
      A, x, y = map(IndexedBase, "Axy")
      i = Idx("i", m)
      p = FCodeGen()
      func = implemented_function("func", Lambda(n, n * (n + 1)))
      routine = make_routine("test_inline", Eq(y[i], func(x[i])))
      code = get_string(p.dump_f95, [routine])
      expected = (
          "subroutine test_inline(m, x, y)\n"
          "implicit none\n"
          "INTEGER*4, intent(in) :: m\n"
          "REAL*8, intent(in), dimension(1:m) :: x\n"
          "REAL*8, intent(out), dimension(1:m) :: y\n"
          "INTEGER*4 :: i\n"
          "do i = 1, m\n"
          "   y(i) = %s*%s\n"
          "end do\n"
          "end subroutine\n"
      )
      args = ("x(i)", "(x(i) + 1)")
      assert code == expected % args or code == expected % args[::-1]
  
imports: from io import StringIO
  from sympy.core import symbols, Eq, pi, Catalan, Lambda, Dummy
  from sympy.core.relational import Equality
  from sympy.core.symbol import Symbol
  from sympy.functions.special.error_functions import erf
  from sympy.integrals.integrals import Integral
  from sympy.matrices import Matrix, MatrixSymbol
  from sympy.utilities.codegen import codegen, make_routine, CCodeGen, C89CodeGen, C99CodeGen, InputArgument, CodeGenError, FCodeGen, CodeGenArgumentListError, OutputArgument, InOutArgument
  from sympy.testing.pytest import raises
  from sympy.utilities.lambdify import implemented_function
label_desc: Use image node_id 47 for calling a global function with example usage: test_inline_function() without return types