code: def check_cdf_sf(distfn, arg, msg):
      values = [0.001, 0.5, 0.999]
      npt.assert_almost_equal(
          distfn.cdf(values, *arg),
          1.0 - distfn.sf(values, *arg),
          decimal=DECIMAL,
          err_msg=msg + " - sf+cdf == 1",
      )
  
imports: import warnings
  import numpy
  from numpy.testing import assert_equal, assert_raises, assert_allclose
  import numpy.testing
  from scipy.special import gamma, factorial, factorial2
  import scipy.stats
  from statsmodels.distributions.edgeworth import _faa_di_bruno_partitions, cumulant_from_moments, ExpandedNormal
label_desc: Use image node_id 7 for calling a global function with example usage: check_cdf_sf(distfn, arg, msg) without return types