code: def test_resid(self):
      res1 = self.res1
      res2 = self.res2
      assert_allclose(
          res1.fittedvalues, res2.resid["fittedvalues"], rtol=1e-8
      )
      assert_allclose(
          res1.resid, res2.resid["response"], atol=1e-8, rtol=1e-8
      )
  
imports: import io
  import os
  import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal
  import pandas
  import patsy
  from statsmodels.api import families
  from statsmodels.tools.sm_exceptions import ValueWarning
  from statsmodels.othermod.betareg import BetaModel
  from .results import results_betareg
label_desc: Use image node_id 3 for calling the TestBetaMeth obj's underlying member method code with example usage: obj.test_resid() without return types