code: def test_plot_carpet_standardize(img_4d_mni, img_3d_ones_mni):
      """Check warning is raised and then suppressed with setting standardize."""
      match = "default strategy for standardize"
  
      with pytest.warns(DeprecationWarning, match=match):
          plot_carpet(img_4d_mni, mask_img=img_3d_ones_mni)
  
      with warnings.catch_warnings(record=True) as record:
          plot_carpet(
              img_4d_mni,
              mask_img=img_3d_ones_mni,
              standardize="zscore_sample",
          )
          for m in record:
              assert match not in m.message
  
file_path: nilearn/nilearn/plotting/tests/test_img_plotting/test_plot_carpet.py
imports: import warnings
  import matplotlib.pyplot
  import numpy
  import pytest
  from nilearn.plotting import plot_carpet
label_desc: Use image node_id 3 for calling a global function with example usage: test_plot_carpet_standardize(img_4d_mni, img_3d_ones_mni) without return types