code: def test_1d():
      B = gen_BrownianMotion()
      Bs = implemented_function("B", B)
      t = sympy.Symbol("t")
      expr = 3 * sympy.exp(Bs(t)) + 4
      expected = 3 * np.exp(B.y) + 4
      ee_vec = lambdify(t, expr, "numpy")
      assert_almost_equal(ee_vec(B.x), expected)
      # with any arbitrary symbol
      b = sympy.Symbol("b")
      expr = 3 * sympy.exp(Bs(b)) + 4
      ee_vec = lambdify(b, expr, "numpy")
      assert_almost_equal(ee_vec(B.x), expected)
  
file_path: nipy/nipy/modalities/fmri/tests/test_aliases.py
imports: import numpy
  import pytest
  import scipy.interpolate
  import sympy
  from numpy.testing import assert_almost_equal
  from sympy.utilities.lambdify import implemented_function, lambdify
label_desc: Use image node_id 4 for calling a global function with example usage: test_1d() without return types