code: def xfail_param(*args, **kwargs):
      kwargs.setdefault("reason", "unknown")
      return pytest.param(*args, marks=[pytest.mark.xfail(**kwargs)])
  
imports: import contextlib
  import numbers
  import os
  import re
  import warnings
  from itertools import product
  import numpy
  import pytest
  import torch
  import torch.cuda
  from numpy.testing import assert_allclose
  from pytest import approx
label_desc: Use image node_id 1 for calling a global function with example usage: xfail_param() and returns: pytest