code: def setup_class(cls):
      data = sm.datasets.spector.load()
      data.exog = sm.add_constant(data.exog, prepend=False)
      # mod = sm.Probit(data.endog, data.exog)
      cls.mod = sm.Logit(data.endog, data.exog)
      # res = mod.fit(method="newton")
      cls.params = [np.array([1, 0.25, 1.4, -7])]
  
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 TestGradLogit obj's underlying member method code with example usage: obj.setup_class(cls) without return types