code: def test_probs(self, close_figures):
      nobs = self.nobs
      probs = self.res.predict_prob()
      freq = np.bincount(self.endog) / nobs
  
      tzi = dia.test_chisquare_prob(self.res, probs[:, :2])
      # regression numbers
      tzi1 = (0.387770845, 0.5334734738)
      assert_allclose(tzi[:2], tzi1, rtol=5e-5)
  
      # smoke test for plot
      dia.plot_probs(freq, probs.mean(0))
  
file_path: statsmodels/statsmodels/discrete/tests/test_diagnostic.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal
  import pytest
  from statsmodels.discrete.discrete_model import Poisson
  import statsmodels.discrete._diagnostics_count
  from statsmodels.discrete.diagnostic import PoissonDiagnostic
label_desc: Use image node_id 3 for calling the TestCountDiagnostic obj's underlying member method code with example usage: obj.test_probs(close_figures) without return types