code: def test_expon(self):
      np.random.seed(3975)
      x_e = stats.expon.rvs(size=500)
      # R function call:
      # require(nortest)
      # lillie.test(x_n)
      d_ks_norm, p_norm = lilliefors(
          x_e, dist="norm", pvalmethod="approx"
      )
      # R function call:
      # require(KScorrect)
      # LcKS(x_e, 'pexp')
      d_ks_exp, p_exp = lilliefors(x_e, dist="exp", pvalmethod="approx")
      # assert normal
      assert_almost_equal(d_ks_norm, 0.15581, decimal=3)
      assert_almost_equal(p_norm, 2.2e-16, decimal=3)
      # assert exp
      assert_almost_equal(d_ks_exp, 0.02763748, decimal=3)
      assert_almost_equal(p_exp, 0.72540, decimal=3)
  
file_path: statsmodels/statsmodels/stats/tests/test_lilliefors.py
imports: import numpy
  import pandas
  import pytest
  from numpy.testing import assert_almost_equal
  from scipy import stats
  from statsmodels.stats._lilliefors import lilliefors, get_lilliefors_table, kstest_fit, ksstat
label_desc: Use image node_id 3 for calling the TestLilliefors obj's underlying member method code with example usage: obj.test_expon() without return types