code: def test_logseries_convergence(self):
      # Test for ticket #923
      N = 1000
      rvsn = self.mt19937.logseries(0.8, size=N)
      # these two frequency counts should be close to theoretical
      # numbers with this large sample
      # theoretical large N result is 0.49706795
      freq = np.sum(rvsn == 1) / N
      msg = f"Frequency was {freq:f}, should be > 0.45"
      assert_(freq > 0.45, msg)
      # theoretical large N result is 0.19882718
      freq = np.sum(rvsn == 2) / N
      msg = f"Frequency was {freq:f}, should be < 0.23"
      assert_(freq < 0.23, msg)
  
imports: from numpy.testing import assert_, assert_array_equal
  import numpy
  import pytest
  from numpy.random import Generator, MT19937
label_desc: Use image node_id 4 for calling the TestRegression obj's underlying member method code with example usage: obj.test_logseries_convergence() without return types