code: def test_strategy_compcor(tmp_path, fmriprep_version):
      """Check user specified input for compcor strategy."""
      file_nii, _ = create_tmp_filepath(
          tmp_path,
          image_type="regular",
          copy_confounds=True,
          copy_json=True,
          fmriprep_version=fmriprep_version,
      )
      confounds, _ = load_confounds_strategy(
          file_nii, denoise_strategy="compcor"
      )
      compcor_col_str_anat = "".join(confounds.columns)
      assert "t_comp_cor_" not in compcor_col_str_anat
      # this one comes from the white matter mask
      expected = (
          "a_comp_cor_57"
          if fmriprep_version == "1.4.x"
          else "w_comp_cor_00"
      )
      assert expected not in compcor_col_str_anat
  
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 5 for calling a global function with example usage: test_strategy_compcor(tmp_path, fmriprep_version) without return types