code: def test_logseries_convergence(self):
      # Test for ticket #923
      N = 1000
      np.random.seed(0)
      rvsn = np.random.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)
  
file_path: catboost/contrib/python/numpy/py3/numpy/random/tests/test_regression.py
imports: import sys
  from numpy.testing import assert_, assert_array_equal, assert_raises
  from numpy import random
  import numpy
label_desc: Use image node_id 3 for calling the TestRegression obj's underlying member method code with example usage: obj.test_logseries_convergence() without return types