code: def _set_cuda_device(device_id, verbose=None):
      """Set the CUDA device."""
      import cupy
  
      cupy.cuda.Device(device_id).use()
      logger.info(f"Now using CUDA device {device_id}")
  
file_path: mne-python/mne/cuda.py
imports: import numpy
  from scipy.fft import irfft, rfft
  from .utils import _check_option, _explain_exception, fill_doc, get_config, logger, sizeof_fmt, verbose, warn
label_desc: Use image node_id 4 for calling a global function with example usage: _set_cuda_device(device_id, verbose) without return types