code: def test_interp1d_numeric():
      # Test wrapper for interp1d
      # See: https://github.com/sympy/sympy/issues/10810
      #
      # Test TypeError raised for object
      func = Interp1dNumeric(range(10), range(10))
      # Numeric values OK
      assert_almost_equal(func([1, 2, 3]), [1, 2, 3])
      assert_almost_equal(func([1.5, 2.5, 3.5]), [1.5, 2.5, 3.5])
      # Object values raise TypeError
      pytest.raises(TypeError, func, t)
      # Check it works as expected via sympy
      sym_func = implemented_function("func", func)
      f = sym_func(t - 2)
      assert_almost_equal(lambdify_t(f)(4.5), 2.5)
      for val in (2, 2.0):
          f = sym_func(val)
          # Input has no effect
          assert_almost_equal(lambdify_t(f)(-100), 2)
          assert_almost_equal(lambdify_t(f)(-1000), 2)
      # Float expression
      f = sym_func(t - 2.0)
      assert_almost_equal(lambdify_t(f)(4.5), 2.5)
  
imports: import re
  import numpy
  import pytest
  import sympy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from sympy import DiracDelta, Dummy, Function, Symbol
  from sympy.utilities.lambdify import implemented_function, lambdify
  from nipy.algorithms.statistics.formula import Term
  from ..None import hrf
  from ..utils import Interp1dNumeric, TimeConvolver, blocks, convolve_functions, define, events, interp, lambdify_t, linear_interp, step_function
label_desc: Use image node_id 9 for calling a global function with example usage: test_interp1d_numeric() without return types