code: def test_strategies(
      tmp_path, denoise_strategy, image_type, fmriprep_version
  ):
      """Check defaults setting of each preset strategy."""
      file_nii, _ = create_tmp_filepath(
          tmp_path,
          image_type=image_type,
          copy_confounds=True,
          copy_json=True,
          fmriprep_version=fmriprep_version,
      )
      confounds, _ = load_confounds_strategy(
          file_nii, denoise_strategy=denoise_strategy
      )
      # Check that all fixed name model categories have been successfully loaded
      list_check = _get_headers(denoise_strategy)
      for col in confounds.columns:
          # Check that all possible names exists
          checker = [
              re.match(keyword, col) is not None
              for keyword in list_check
          ]
          assert sum(checker) == 1
  
file_path: nilearn/nilearn/interfaces/fmriprep/tests/test_load_confounds_strategy.py
imports: import re
  import pandas
  import pytest
  from nilearn.interfaces.fmriprep import load_confounds_strategy
  from nilearn.interfaces.fmriprep.load_confounds_strategy import preset_strategies
  from nilearn.interfaces.fmriprep.tests._testing import create_tmp_filepath
label_desc: Use image node_id 2 for calling a global function with example usage: test_strategies(tmp_path, denoise_strategy, image_type, fmriprep_version) without return types