code: def test_resid(self):
      # need to override because res2 does not have resid
      res1 = self.res1
      res2 = self.res2
      assert_allclose(
          res1.resid_response, res2.resid_response, rtol=1e-8
      )
  
imports: import warnings
  import numpy
  from numpy.testing import assert_allclose, assert_equal
  from statsmodels.genmod.families import family
  from statsmodels.genmod.generalized_linear_model import GLM
  from statsmodels.regression.linear_model import OLS, WLS
  from statsmodels.tools.sm_exceptions import ValueWarning
  from statsmodels.tools.tools import add_constant
label_desc: Use image node_id 3 for calling the TestGLMBinomialCountConstrained obj's underlying member method code with example usage: obj.test_resid() without return types