code: def fails(arg: Any, reason: str = "No reason given") -> Any:
      """Mark a parameter for pytest parametrize that it should fail
  
      ..code:: python
  
          @parametrize("number", [2, 3, fails(5, "some reason")])
  
      Parameters
      ----------
      arg : Any
          The arg that should fail
  
      reason : str = "No reason given"
          The reason for the expected fail
  
      Returns
      -------
      Any
          The param object
      """
      return param(arg, marks=mark.xfail(reason=reason))
  
imports: from typing import Any
  from pytest import mark, param
label_desc: Use image node_id 1 for calling a global function with example usage: fails(arg, reason) and returns: param