code: def _check_signal_parameters(detrend, standardize_confounds):
      """Raise warning if the combination is illogical."""
      if not detrend and not standardize_confounds:
          warnings.warn(
              "When confounds are provided, one must perform detrend "
              "and/or standardize confounds. "
              f"You provided detrend={detrend}, "
              f"standardize_confounds={standardize_confounds}. "
              "If confounds were not standardized or demeaned "
              "before passing to signal.clean signal "
              "will not be correctly cleaned. "
          )
  
imports: import warnings
  import numpy
  import pandas
  from scipy import linalg, signal
  from scipy.interpolate import CubicSpline
  from sklearn.utils import as_float_array, gen_even_slices
  from nilearn._utils import fill_doc, stringify_path
  from nilearn._utils.numpy_conversions import as_ndarray, csv_to_array
  from nilearn._utils.param_validation import check_run_sample_masks
label_desc: Use image node_id 24 for calling a global function with example usage: _check_signal_parameters(detrend, standardize_confounds) without return types