code: def test_irrelevant_input(tmp_path, fmriprep_version):
      """Check invalid input raising correct warning or error message."""
      file_nii, _ = create_tmp_filepath(
          tmp_path,
          image_type="regular",
          copy_confounds=True,
          copy_json=True,
          fmriprep_version=fmriprep_version,
      )
      warning_message = (
          r"parameters accepted: \['motion', 'wm_csf', "
          "'global_signal', 'demean']"
      )
      with pytest.warns(UserWarning, match=warning_message):
          load_confounds_strategy(
              file_nii, denoise_strategy="simple", ica_aroma="full"
          )
      # invalid strategy
      with pytest.raises(KeyError, match="blah"):
          load_confounds_strategy(file_nii, denoise_strategy="blah")
  
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 6 for calling a global function with example usage: test_irrelevant_input(tmp_path, fmriprep_version) without return types