code: def test_score(self):
      for test_params in self.params:
          sc = self.mod.score(test_params)
          scfd = numdiff.approx_fprime(
              test_params.ravel(), self.mod.loglike
          )
          assert_almost_equal(sc, scfd, decimal=1)
  
          sccs = numdiff.approx_fprime_cs(
              test_params.ravel(), self.mod.loglike
          )
          assert_almost_equal(sc, sccs, decimal=11)
  
imports: import numpy
  from numpy.testing import assert_allclose, assert_almost_equal
  import statsmodels.api
  from statsmodels.tools import numdiff
  from statsmodels.tools.numdiff import approx_fprime, approx_fprime_cs, approx_hess_cs, _approx_fprime_scalar, _approx_fprime_cs_scalar
label_desc: Use image node_id 1 for calling the CheckGradLoglikeMixin obj's underlying member method code with example usage: obj.test_score() without return types