code: def may_xfail(func):
      if sys.platform.lower() == "darwin" or os.name == "nt":
          # sympy.utilities._compilation needs more testing on Windows and macOS
          # once those two platforms are reliably supported this xfail decorator
          # may be removed.
          return XFAIL(func)
      else:
          return func
  
imports: from collections import namedtuple
  from hashlib import sha256
  import os
  import shutil
  import sys
  import fnmatch
  from sympy.testing.pytest import XFAIL
label_desc: Use image node_id 1 for calling a global function with example usage: may_xfail(func) and returns: XFAIL, func