code: def test_resid(self):
      res1 = self.res1
      res2 = self.res2
      assert_allclose(res1.resid_response, res2.resid, rtol=1e-10)
  
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 4 for calling the ConstrainedCompareMixin obj's underlying member method code with example usage: obj.test_resid() without return types