code: def _binomial_cdf(k, n, p):
      k, n, p = mpmath.mpf(k), mpmath.mpf(n), mpmath.mpf(p)
      if k <= 0:
          return mpmath.mpf(0)
      elif k >= n:
          return mpmath.mpf(1)
  
      onemp = mpmath.fsub(1, p, exact=True)
      return mpmath.betainc(n - k, k + 1, x2=onemp, regularized=True)
  
imports: import itertools
  import numpy
  from numpy.testing import assert_equal, assert_allclose
  import pytest
  import scipy.special
  from scipy.special._testutils import MissingModule, check_version, FuncData
  from scipy.special._mptestutils import Arg, IntArg, get_args, mpf2float, assert_mpmath_equal
label_desc: Use image node_id 2 for calling a global function with example usage: _binomial_cdf(k, n, p) and returns: mpmath, mpmath, mpmath