code: def pytest_runtest_makereport(
      item: pytest.Item, call: pytest.CallInfo[None]
  ):
      """Hook to treat skipped tests as failures."""
      outcome = yield
      rep = outcome.get_result()
  
      if item.config.getoption("--fail-if-skipped"):
          if rep.skipped and call.excinfo.errisinstance(
              pytest.skip.Exception
          ):
              rep.outcome = "failed"
              r = call.excinfo._getreprcrash()
              rep.longrepr = f"Fail skipped tests - {r.message}"
  
imports: import fnmatch
  import pathlib
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_runtest_makereport(item, call) without return types