code: def check_rvs_broadcast(
      distfunc, distname, allargs, shape, shape_only, otype
  ):
      np.random.seed(123)
      sample = distfunc.rvs(*allargs)
      assert_equal(
          sample.shape, shape, "%s: rvs failed to broadcast" % distname
      )
      if not shape_only:
          rvs = np.vectorize(
              lambda *allargs: distfunc.rvs(*allargs), otypes=otype
          )
          np.random.seed(123)
          expected = rvs(*allargs)
          assert_allclose(sample, expected, rtol=1e-13)
  
imports: import pickle
  import numpy
  import numpy.testing
  from numpy.testing import assert_allclose, assert_equal
  from pytest import raises
  import numpy.ma.testutils
  from scipy._lib._util import getfullargspec_no_self, np_long
  from scipy import stats
label_desc: Use image node_id 20 for calling a global function with example usage: check_rvs_broadcast(distfunc, distname, allargs, shape, shape_only, otype) without return types