code: def xfail_jit(*args, **kwargs):
      reason = kwargs.pop("reason", "not jittable")
      return pytest.param(
          *args,
          marks=[
              pytest.mark.xfail(reason=reason),
              pytest.mark.skipif(
                  "CI" in os.environ, reason="slow test"
              ),
          ],
      )
  
file_path: pyro/tests/test_examples.py
imports: import logging
  import os
  import sys
  from subprocess import check_call
  import pytest
  import torch
  from tests.common import EXAMPLES_DIR, requires_cuda, requires_funsor, requires_horovod, requires_lightning, xfail_param
label_desc: Use image node_id 1 for calling a global function with example usage: xfail_jit() and returns: pytest