code: def _noncentral_chi_cdf(x, df, nc, dps=None):
      if dps is None:
          dps = mpmath.mp.dps
      x, df, nc = mpmath.mpf(x), mpmath.mpf(df), mpmath.mpf(nc)
      with mpmath.workdps(dps):
          res = mpmath.quad(
              lambda t: _noncentral_chi_pdf(t, df, nc), [0, x]
          )
          return res
  
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 6 for calling a global function with example usage: _noncentral_chi_cdf(x, df, nc, dps) and returns: res