code: def test_alias():
      x = F.Term("x")
      f = implemented_function("f", lambda x: 2 * x)
      g = implemented_function("g", lambda x: np.sqrt(x))
      ff = F.Formula([f(x), g(x) ** 2])
      n = F.make_recarray([2, 4, 5], "x")
      assert_almost_equal(ff.design(n)["f(x)"], n["x"] * 2)
      assert_almost_equal(ff.design(n)["g(x)**2"], n["x"])
  
imports: from warnings import catch_warnings, simplefilter
  import numpy
  import pytest
  import sympy
  from numpy.core.records import fromrecords
  from numpy.testing import assert_almost_equal, assert_array_equal
  from sympy.utilities.lambdify import implemented_function
  from nipy.utils import VisibleDeprecationWarning
  from ..None import formulae
  from ..formulae import Term, terms
label_desc: Use image node_id 19 for calling a global function with example usage: test_alias() without return types