code: def check_sf_isf(distfn, arg, msg):
      npt.assert_almost_equal(
          distfn.sf(distfn.isf([0.1, 0.5, 0.9], *arg), *arg),
          [0.1, 0.5, 0.9],
          decimal=DECIMAL,
          err_msg=msg + " - sf-isf roundtrip",
      )
      npt.assert_almost_equal(
          distfn.cdf([0.1, 0.9], *arg),
          1.0 - distfn.sf([0.1, 0.9], *arg),
          decimal=DECIMAL,
          err_msg=msg + " - cdf-sf relationship",
      )
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  import numpy.testing
  import pytest
  from pytest import raises
  from scipy._lib._numpy_compat import suppress_warnings
  from scipy.integrate import IntegrationWarning
  from scipy import stats
  from scipy.special import betainc
  from .common_tests import check_normalization, check_moment, check_mean_expect, check_var_expect, check_skew_expect, check_kurt_expect, check_entropy, check_private_entropy, check_entropy_vect_scale, check_edge_support, check_named_args, check_random_state_property, check_meth_dtype, check_ppf_dtype, check_cmplx_deriv, check_pickling, check_rvs_broadcast
  from scipy.stats._distr_params import distcont
label_desc: Use image node_id 12 for calling a global function with example usage: check_sf_isf(distfn, arg, msg) without return types