code: def mark_xfail(nb, **kwargs):
      nb_index = None
      for i, nb_file in enumerate(nb_files):
          if nb in nb_file:
              nb_index = i
  
      if nb_index is None:
          raise ValueError(
              f"Cannot set notebook {nb} to xfail because it could not be found"
          )
  
      nb_files[nb_index] = pytest.param(
          nb, marks=pytest.mark.xfail(**kwargs)
      )
  
imports: import os
  import glob
  import pytest
  from testbook import testbook
label_desc: Use image node_id 1 for calling a global function with example usage: mark_xfail(nb) without return types