code: def test_non_steady_state(tmp_path, fmriprep_version):
      """Warn when 'non_steady_state' is in strategy."""
      # supplying 'non_steady_state' in strategy is not necessary
      # check warning is correctly raised
      img, _ = create_tmp_filepath(
          tmp_path,
          copy_confounds=True,
          fmriprep_version=fmriprep_version,
      )
      warning_message = r"Non-steady state"
      with pytest.warns(UserWarning, match=warning_message):
          load_confounds(img, strategy=("non_steady_state", "motion"))
  
imports: import re
  import numpy
  import pandas
  import pytest
  from nibabel import Nifti1Image
  from scipy.stats import pearsonr
  from sklearn.preprocessing import scale
  from nilearn._utils.data_gen import create_fake_bids_dataset
  from nilearn._utils.fmriprep_confounds import to_camel_case
  from nilearn.conftest import _rng
  from nilearn.interfaces.bids import get_bids_files
  from nilearn.interfaces.fmriprep import load_confounds
  from nilearn.interfaces.fmriprep.load_confounds import _check_strategy, _load_single_confounds_file
  from nilearn.interfaces.fmriprep.tests._testing import create_tmp_filepath, get_legal_confound
  from nilearn.maskers import NiftiMasker
label_desc: Use image node_id 19 for calling a global function with example usage: test_non_steady_state(tmp_path, fmriprep_version) without return types