code: def test_glm_attr(self):
      for attr in [
          "llf",
          "null_deviance",
          "aic",
          "df_resid",
          "df_model",
          "pearson_chi2",
          "scale",
      ]:
          assert_allclose(
              getattr(self.res1, attr),
              getattr(self.res2, attr),
              rtol=1e-10,
          )
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", FutureWarning)
          # FutureWarning to silence BIC warning
          assert_allclose(self.res1.bic, self.res2.bic, 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 TestGLMBinomialCountConstrained obj's underlying member method code with example usage: obj.test_glm_attr() without return types