code: def test_hypergeom_sf(k, M, n, N, expected, rtol):
      p = hypergeom.sf(k, M, n, N)
      assert_allclose(p, expected, rtol=rtol)
  
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 2 for calling a global function with example usage: test_hypergeom_sf(k, M, n, N, expected, rtol) without return types