code: def _(dist: SingleContinuousDistribution, size, seed):
      # if we don't need to make a handmade pdf, we won't
      import scipy.stats
  
      z = Dummy("z")
      handmade_pdf = lambdify(z, dist.pdf(z), ["numpy", "scipy"])
  
      class scipy_pdf(scipy.stats.rv_continuous):
          def _pdf(dist, x):
              return handmade_pdf(x)
  
      scipy_rv = scipy_pdf(
          a=float(dist.set._inf),
          b=float(dist.set._sup),
          name="scipy_pdf",
      )
      return scipy_rv.rvs(size=size, random_state=seed)
  
imports: from functools import singledispatch
  from sympy.core.symbol import Dummy
  from sympy.functions.elementary.exponential import exp
  from sympy.utilities.lambdify import lambdify
  from sympy.external import import_module
  from sympy.stats import DiscreteDistributionHandmade
  from sympy.stats.crv import SingleContinuousDistribution
  from sympy.stats.crv_types import ChiSquaredDistribution, ExponentialDistribution, GammaDistribution, LogNormalDistribution, NormalDistribution, ParetoDistribution, UniformDistribution, BetaDistribution, StudentTDistribution, CauchyDistribution
  from sympy.stats.drv_types import GeometricDistribution, LogarithmicDistribution, NegativeBinomialDistribution, PoissonDistribution, SkellamDistribution, YuleSimonDistribution, ZetaDistribution
  from sympy.stats.frv import SingleFiniteDistribution
label_desc: Use image node_id 2 for calling a global function with example usage: _(dist, size, seed) and returns: scipy_rv, handmade_pdf