code: def _check_looo(self):
      infl = self.infl1
      # unwrap if needed
      results = getattr(infl.results, "_results", infl.results)
  
      res_looo = infl._res_looo
      mask_infl = (
          infl.cooks_distance[0] > 2 * infl.cooks_distance[0].std()
      )
      mask_low = ~mask_infl
      diff_params = results.params - res_looo["params"]
      assert_allclose(
          infl.d_params[mask_low], diff_params[mask_low], atol=0.05
      )
      assert_allclose(
          infl.params_one[mask_low],
          res_looo["params"][mask_low],
          rtol=0.01,
      )
  
imports: from statsmodels.compat.pandas import testing
  import os.path
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from statsmodels.regression.linear_model import OLS
  from statsmodels.genmod.generalized_linear_model import GLM
  from statsmodels.genmod import families
  from statsmodels.stats.outliers_influence import MLEInfluence
label_desc: Use image node_id 2 for calling a global function with example usage: _check_looo() without return types