code: def test_Q():
      pytest.raises(ValueError, rft.Q, -1)
      pytest.raises(ValueError, rft.Q, 0)
      x = np.arange(-9, 10)
      for dim in range(1, 4):
          res = rft.Q(dim)
          assert_almost_equal(res(x), hermitenorm(dim - 1)(x))
  
imports: import numpy
  import scipy.stats
  from scipy.special import gammaln, hermitenorm
  import pytest
  from numpy.testing import assert_almost_equal
  from ..None import rft
label_desc: Use image node_id 1 for calling a global function with example usage: test_Q() without return types