code: def check_meth_dtype(distfn, arg, meths):
      q0 = [0.25, 0.5, 0.75]
      x0 = distfn.ppf(q0, *arg)
      x_cast = [
          x0.astype(tp)
          for tp in (np.int_, np.float16, np.float32, np.float64)
      ]
  
      for x in x_cast:
          # casting may have clipped the values, exclude those
          distfn._argcheck(*arg)
          x = x[(distfn.a < x) & (x < distfn.b)]
          for meth in meths:
              val = meth(x, *arg)
              npt.assert_(val.dtype == np.float_)
  
imports: from __future__ import division, print_function, absolute_import
  import pickle
  import numpy
  import numpy.testing
  from numpy.testing import assert_allclose, assert_equal
  from scipy._lib._numpy_compat import suppress_warnings
  from pytest import raises
  import numpy.ma.testutils
  from scipy._lib._util import getargspec_no_self
  from scipy import stats
label_desc: Use image node_id 14 for calling a global function with example usage: check_meth_dtype(distfn, arg, meths) without return types