code: def assert_ok(model, guide, elbo, *args, **kwargs):
      """
      Assert that inference works without warnings or errors.
      """
      pyro.get_param_store().clear()
      adam = optim.Adam({"lr": 1e-6})
      inference = infer.SVI(model, guide, adam, elbo)
      for i in range(2):
          inference.step(*args, **kwargs)
  
imports: import warnings
  import pytest
  import funsor
  from funsor.testing import xfail_param
  from funsor.util import get_backend
label_desc: Use image node_id 3 for calling a global function with example usage: assert_ok(model, guide, elbo) without return types