code: def test_ordered_lc_cvls(self):
      model = nparam.KernelReg(
          endog=[self.Italy_gdp],
          exog=[self.Italy_year],
          reg_type="lc",
          var_type="o",
          bw="cv_ls",
      )
      sm_bw = model.bw
      R_bw = 0.1390096
  
      sm_mean, sm_mfx = model.fit()
      sm_mean = sm_mean[0:5]
      sm_mfx = sm_mfx[0:5]
      R_mean = 6.190486
  
      sm_R2 = model.r_squared()
      R_R2 = 0.1435323
  
      ## CODE TO REPRODUCE IN R
      ## library(np)
      ## data(Italy)
      ## attach(Italy)
      ## bw <- npregbw(formula=gdp[1:50]~ordered(year[1:50]))
      npt.assert_allclose(sm_bw, R_bw, atol=1e-2)
      npt.assert_allclose(sm_mean, R_mean, atol=1e-2)
      npt.assert_allclose(sm_R2, R_R2, atol=1e-2)
  
imports: import pytest
  import numpy
  import numpy.testing
  import statsmodels.api
label_desc: Use image node_id 1 for calling the TestKernelReg obj's underlying member method code with example usage: obj.test_ordered_lc_cvls() without return types