code: def test_issue_19747():
      # test that negative k does not raise an error in nbinom.logcdf
      result = nbinom.logcdf([5, -1, 1], 5, 0.5)
      reference = [-0.47313352, -np.inf, -2.21297293]
      assert_allclose(result, reference)
  
imports: import pytest
  import itertools
  from scipy.stats import betabinom, betanbinom, hypergeom, nhypergeom, bernoulli, boltzmann, skellam, zipf, zipfian, binom, nbinom, nchypergeom_fisher, nchypergeom_wallenius, randint
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose, suppress_warnings
  from scipy.special import binom
  from scipy.optimize import root_scalar
  from scipy.integrate import quad
label_desc: Use image node_id 22 for calling a global function with example usage: test_issue_19747() without return types