code: def refuse_to_run_test_from_wrongly_named_files(request):
      dirname: str = request.node.fspath.dirname
      filename: str = request.node.fspath.basename
      is_system_test: bool = "tests/system/" in dirname
      if (
          is_system_test
          and not request.node.fspath.basename.startswith("example_")
      ):
          raise Exception(
              f"All test method files in tests/system must start with 'example_'. Seems that {filename} "
              f"contains {request.function} that looks like a test case. Please rename the file to "
              f"follow the example_* pattern if you want to run the tests in it."
          )
      if (
          not is_system_test
          and not request.node.fspath.basename.startswith("test_")
      ):
          raise Exception(
              f"All test method files in tests/ must start with 'test_'. Seems that {filename} "
              f"contains {request.function} that looks like a test case. Please rename the file to "
              f"follow the test_* pattern if you want to run the tests in it."
          )
  
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 38 for calling a global function with example usage: refuse_to_run_test_from_wrongly_named_files(request) without return types