code: def load_mni152_brain_mask(resolution=None, threshold=0.2):
      """Load the MNI152 whole-brain mask.
  
      This function takes the whole-brain MNI152 T1 template and threshold it,
      in order to obtain the corresponding whole-brain mask.
  
      .. versionadded:: 0.2.5
  
      Parameters
      ----------
      resolution: int, default=1
          If resolution is different from 1, the template loaded is first
          re-sampled with the specified resolution.
  
          .. versionadded:: 0.8.1
  
      threshold : float, default=0.2
          Values of the MNI152 T1 template above this threshold will be included.
  
      Returns
      -------
      mask_img : Nifti1Image, image corresponding to the whole-brain mask.
  
      Notes
      -----
      Refer to load_mni152_template function for more information about the
      MNI152 T1 template.
  
      See Also
      --------
      nilearn.datasets.load_mni152_template : for details about version of the
          MNI152 T1 template and related.
  
      """
      resolution = resolution or 1
  
      # Load MNI template
      target_img = load_mni152_template(resolution=resolution)
      mask_voxels = (get_data(target_img) > threshold).astype("int8")
      mask_img = new_img_like(target_img, mask_voxels)
  
      return mask_img
  
imports: import functools
  import os
  import warnings
  from pathlib import Path
  import numpy
  import pandas
  from scipy.ndimage import binary_closing
  from sklearn.utils import Bunch
  from .._utils import check_niimg, fill_doc
  from ..image import get_data, new_img_like, resampling
  from ._utils import fetch_files, get_dataset_descr, get_dataset_dir
label_desc: Use image node_id 5 for calling a global function with example usage: load_mni152_brain_mask(resolution, threshold) and returns: mask_img