class_docstr: RunIf wrapper for simple marking specific cases, fully compatible with pytest.mark::
  
  @RunIf(...)
  @pytest.mark.parametrize("arg1", [1, 2.0])
  def test_wrapper(arg1):
      assert arg1 > 0.0
class_docstr_tok: ["RunIf","wrapper","for","simple","marking","specific","cases",",","fully","compatible","with","pytest.mark",":",":","@","RunIf","(","...",")","@","pytest.mark.parametrize","(","``","arg1","''",",","[","1",",","2.0","]",")","def","test_wrapper","(","arg1",")",":","assert","arg1",">","0.0"]
docstr: Args:
      *args: Any :class:`pytest.mark.skipif` arguments.
      pl: Requires that PyTorch Lightning is installed.
      flash: Requires that Flash is installed.
      min_python: Require that Python is greater or equal than this version.
      skip_windows: Skip for Windows platform.
      skip_linux: Skip for Linux platform.
      skip_mac_os: Skip for Mac Os Platform.
      **kwargs: Any :class:`pytest.mark.skipif` keyword arguments.
docstr_tok: ["Args",":","*","args",":","Any",":","class",":","`","pytest.mark.skipif","`","arguments",".","pl",":","Requires","that","PyTorch","Lightning","is","installed",".","flash",":","Requires","that","Flash","is","installed",".","min_python",":","Require","that","Python","is","greater","or","equal","than","this","version",".","skip_windows",":","Skip","for","Windows","platform",".","skip_linux",":","Skip","for","Linux","platform",".","skip_mac_os",":","Skip","for","Mac","Os","Platform",".","*","*","kwargs",":","Any",":","class",":","`","pytest.mark.skipif","`","keyword","arguments","."]
code: def __new__(
      self,
      *args: Any,
      pl: bool = False,
      flash: bool = False,
      min_python: Optional[str] = None,
      skip_windows: bool = False,
      skip_linux: bool = False,
      skip_mac_os: bool = False,
      local_end_to_end: bool = False,
      cloud: bool = False,
      **kwargs: Any,
  ):
      """
      Args:
          *args: Any :class:`pytest.mark.skipif` arguments.
          pl: Requires that PyTorch Lightning is installed.
          flash: Requires that Flash is installed.
          min_python: Require that Python is greater or equal than this version.
          skip_windows: Skip for Windows platform.
          skip_linux: Skip for Linux platform.
          skip_mac_os: Skip for Mac Os Platform.
          **kwargs: Any :class:`pytest.mark.skipif` keyword arguments.
      """
      import pytest
  
      conditions = []
      reasons = []
  
      if min_python:
          py_version = f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"
          conditions.append(Version(py_version) < Version(min_python))
          reasons.append(f"python>={min_python}")
  
      if skip_windows:
          conditions.append(sys.platform == "win32")
          reasons.append("unimplemented on Windows")
  
      if skip_linux:
          conditions.append(sys.platform == "linux")
          reasons.append("unimplemented on linux")
  
      if skip_mac_os:
          conditions.append(sys.platform == "darwin")
          reasons.append("unimplemented on MacOS")
  
      if pl:
          conditions.append(not _is_pytorch_lightning_available())
          reasons.append("PyTorch Lightning is required.")
  
      if flash:
          conditions.append(not _is_lightning_flash_available())
          reasons.append("Lightning Flash is required.")
  
      if cloud:
          conditions.append(not _CLOUD_TEST_RUN)
          reasons.append("Cloud End to End tests should not run.")
  
      reasons = [rs for cond, rs in zip(conditions, reasons) if cond]
      return pytest.mark.skipif(
          *args,
          condition=any(conditions),
          reason=f"Requires: [{' + '.join(reasons)}]",
          **kwargs,
      )
  
imports: import subprocess
  import sys
  from queue import Empty
  from typing import Any, List, Optional, Tuple
  from packaging.version import Version
  from lightning.app.core import LightningFlow, LightningWork
  from lightning.app.core.queues import BaseQueue
  from lightning.app.utilities.imports import _CLOUD_TEST_RUN, _is_lightning_flash_available, _is_pytorch_lightning_available
label_desc: Use image node_id 1 for calling the _RunIf obj's underlying member method code with example usage: obj.__new__() and returns: pytest