code: def _get_headers(denoise_strategy):
      """Retrieve the relevant header pattern for each strategy to check."""
      default_params = preset_strategies[denoise_strategy].copy()
  
      list_check = []
      noise_components = default_params.pop("strategy")
      for strategy in noise_components:
          if strategy in patterns:
              list_check += patterns[strategy]
  
      for key, value in default_params.items():
          if (
              key in ["motion", "wm_csf", "global_signal"]
              and value != "basic"
          ):
              for item in patterns[key]:
                  list_check.append(item.replace("$", "_+"))
      return list_check
  
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 3 for calling a global function with example usage: _get_headers(denoise_strategy) and returns: list_check