code: def test_nonlin2():
      dz = F.make_recarray([2, 3, 4], "z")
      z = F.Term("z")
      t = sympy.Symbol("th")
      p = F.make_recarray([3], ["tt"])
      f = F.Formula([sympy.exp(t * z)])
      pytest.raises(ValueError, f.design, dz, p)
  
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 24 for calling a global function with example usage: test_nonlin2() without return types