code: def skip_if_not_marked_with_backend(selected_backend, item):
      for marker in item.iter_markers(name="backend"):
          backend_names = marker.args
          if selected_backend in backend_names:
              return
      pytest.skip(
          f"The test is skipped because it does not have the right backend marker. "
          f"Only tests marked with pytest.mark.backend('{selected_backend}') are run: {item}"
      )
  
imports: from __future__ import annotations
  import json
  import os
  import platform
  import subprocess
  import sys
  import warnings
  from contextlib import ExitStack, suppress
  from datetime import datetime, timedelta
  from pathlib import Path
  from typing import TYPE_CHECKING
  import pytest
  import time_machine
  from itsdangerous import URLSafeSerializer
label_desc: Use image node_id 12 for calling a global function with example usage: skip_if_not_marked_with_backend(selected_backend, item) without return types