code: def skip_db_test(item):
      if next(item.iter_markers(name="db_test"), None):
          if next(item.iter_markers(name="non_db_test_override"), None):
              # non_db_test can override the db_test set for example on module or class level
              return
          else:
              pytest.skip(
                  f"The test is skipped as it is DB test "
                  f"and --skip-db-tests is flag is passed to pytest. {item}"
              )
      if next(item.iter_markers(name="backend"), None):
          # also automatically skip tests marked with `backend` marker as they are implicitly
          # db tests
          pytest.skip(
              f"The test is skipped as it is DB test "
              f"and --skip-db-tests is flag is passed to pytest. {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 19 for calling a global function with example usage: skip_db_test(item) without return types