code: def test_reparam_stable(kernel, kwargs):
      @poutine.reparam(config={"z": LatentStableReparam()})
      def model():
          stability = pyro.sample("stability", dist.Uniform(0.0, 2.0))
          skew = pyro.sample("skew", dist.Uniform(-1.0, 1.0))
          y = pyro.sample("z", dist.Stable(stability, skew))
          pyro.sample("x", dist.Poisson(y.abs()), obs=torch.tensor(1.0))
  
      mcmc_kernel = kernel(model, max_plate_nesting=0, **kwargs)
      assert_ok(mcmc_kernel)
  
imports: import io
  import logging
  import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.poutine
  from pyro.infer import config_enumerate
  from pyro.infer.mcmc import HMC, NUTS
  from pyro.infer.mcmc.api import MCMC
  from pyro.infer.mcmc.util import TraceEinsumEvaluator, TraceTreeEvaluator, initialize_model
  from pyro.infer.reparam import LatentStableReparam
  from pyro.poutine.subsample_messenger import _Subsample
  from tests.common import assert_close, assert_equal, xfail_param
label_desc: Use image node_id 17 for calling a global function with example usage: test_reparam_stable(kernel, kwargs) without return types