code: def _write_bids_raw_anat(subses_dir, subject, session) -> None:
      """Create a dummy anat T1w file.
  
      Parameters
      ----------
      subses_dir : :obj:`Path`
          Subject session directory
  
      subject : :obj:`str`
          Subject label
  
      session : :obj:`str`
          Session label
      """
      anat_path = subses_dir / "anat"
      anat_path.mkdir(parents=True, exist_ok=True)
      fields = {
          "suffix": "T1w",
          "extension": "nii.gz",
          "entities": {"sub": subject, "ses": session},
      }
      (anat_path / create_bids_filename(fields)).write_text("")
  
imports: from __future__ import annotations
  import itertools
  import json
  import string
  from pathlib import Path
  import numpy
  import pandas
  import scipy.linalg
  import scipy.signal
  from nibabel import Nifti1Image
  from scipy.ndimage import binary_dilation
  from nilearn import datasets, image, maskers, masking
  from nilearn._utils import as_ndarray, logger
  from nilearn.interfaces.bids.utils import bids_entities, check_bids_label, create_bids_filename
  from nilearn.interfaces.fmriprep.tests._testing import get_legal_confound
label_desc: Use image node_id 23 for calling a global function with example usage: _write_bids_raw_anat(subses_dir, subject, session) without return types