code: def test_tukeylambda_stats_invalid():
      """Test values of lambda outside the domains of the functions."""
      lam = [-1.0, -0.5]
      var = tukeylambda_variance(lam)
      assert_equal(var, np.array([np.nan, np.inf]))
  
      lam = [-1.0, -0.25]
      kurt = tukeylambda_kurtosis(lam)
      assert_equal(kurt, np.array([np.nan, np.inf]))
  
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal
  from scipy.stats._tukeylambda_stats import tukeylambda_variance, tukeylambda_kurtosis
label_desc: Use image node_id 3 for calling a global function with example usage: test_tukeylambda_stats_invalid() without return types