code: def test_getparams_terms():
      t = F.Term("t")
      x, y, z = (sympy.Symbol(l) for l in "xyz")
      assert set(F.getparams(x * y * t)) == {x, y}
      assert set(F.getterms(x * y * t)) == {t}
  
      matrix_expr = np.array([[x, y * t], [y, z]])
      assert set(F.getparams(matrix_expr)) == {x, y, z}
      assert set(F.getterms(matrix_expr)) == {t}
  
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 2 for calling a global function with example usage: test_getparams_terms() without return types