code: def skip_or_xfail_mark(
      *args,
      reason: str,
      raises: type[Exception] | tuple[type[Exception], ...] = (),
  ):
      if raises and not RUN_QUICK:
          return pytest.mark.xfail(*args, reason=reason, raises=raises)
      return pytest.mark.skip(reason=reason)
  
file_path: orion/tests/unittests/algo/long/hebo/test_hebo.py
imports: from __future__ import annotations
  import dataclasses
  import typing
  from typing import ClassVar
  import pytest
  from orion.algo.hebo.hebo_algo import HEBO, EvolutionStrategyName, ModelName, import_optional, properly_seeded_models
  from orion.testing.algo import BaseAlgoTests, TestPhase, first_phase_only
  from hebo.models.model_factory import model_dict
  from pymoo.factory import get_algorithm_options
label_desc: Use image node_id 1 for calling a global function with example usage: skip_or_xfail_mark() and returns: pytest, pytest