code: def task_xfail(func):
      def inner():
          return pytest.param(func(), marks=pytest.mark.xfail)
  
      return inner
  
imports: import numpy
  import pytest
  import sklearn
  import shap
  from shap.utils import assert_import
label_desc: Use image node_id 2 for calling a global function with example usage: task_xfail(func) and returns: inner, pytest