code: def __init__(
      self,
      spfunc,
      mpfunc,
      index,
      argspec,
      spfunc_first=True,
      dps=20,
      n=5000,
      rtol=None,
      atol=None,
      endpt_rtol=None,
      endpt_atol=None,
  ):
      self.spfunc = spfunc
      self.mpfunc = mpfunc
      self.index = index
      self.argspec = argspec
      self.spfunc_first = spfunc_first
      self.dps = dps
      self.n = n
      self.rtol = rtol
      self.atol = atol
  
      if not isinstance(argspec, list):
          self.endpt_rtol = None
          self.endpt_atol = None
      elif endpt_rtol is not None or endpt_atol is not None:
          if isinstance(endpt_rtol, list):
              self.endpt_rtol = endpt_rtol
          else:
              self.endpt_rtol = [endpt_rtol] * len(self.argspec)
          if isinstance(endpt_atol, list):
              self.endpt_atol = endpt_atol
          else:
              self.endpt_atol = [endpt_atol] * len(self.argspec)
      else:
          self.endpt_rtol = None
          self.endpt_atol = None
  
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 1 to create a new _CDFData object  with example: obj = _CDFData(spfunc, mpfunc, index, argspec, spfunc_first, dps, n, rtol, atol, endpt_rtol, endpt_atol)