code: def test_get_mask_volume():
      # Test that hard-coded standard mask volume can be corrected computed
      if os.path.isfile(mni152_brain_mask):
          assert MNI152_BRAIN_VOLUME == get_mask_volume(
              nibabel.load(mni152_brain_mask)
          )
      else:
          warnings.warn(
              f"Couldn't find {mni152_brain_mask} (for testing)"
          )
  
file_path: nilearn/nilearn/_utils/tests/test_param_validation.py
imports: import os
  import warnings
  import nibabel
  import numpy
  import pytest
  from sklearn.base import BaseEstimator
  from nilearn._utils.extmath import fast_abs_percentile
  from nilearn._utils.param_validation import MNI152_BRAIN_VOLUME, check_feature_screening, check_threshold, get_mask_volume
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_mask_volume() without return types