code: def skip_if_running_tests(msg=""):
      """Raise a SkipTest if we appear to be running the pytest test loader.
  
      Parameters
      ----------
      msg : string, optional
          The message issued when a test is skipped.
  
      """
      if are_tests_running():
          pytest.skip(msg)
  
file_path: nilearn/nilearn/_utils/testing.py
imports: import functools
  import gc
  import os
  import sys
  import tempfile
  import warnings
  from pathlib import Path
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: skip_if_running_tests(msg) without return types