code: def set_cuda_device(device_id, verbose=None):
      """Set the CUDA device temporarily for the current session.
  
      Parameters
      ----------
      device_id : int
          Numeric ID of the CUDA-capable device you want MNE-Python to use.
      %(verbose)s
      """
      if _cuda_capable:
          _set_cuda_device(device_id, verbose)
      elif get_config("MNE_USE_CUDA", "false").lower() == "true":
          init_cuda()
          _set_cuda_device(device_id, verbose)
      else:
          warn(
              "Could not set CUDA device because CUDA is not enabled; either "
              "run mne.cuda.init_cuda() first, or set the MNE_USE_CUDA config "
              'variable to "true".'
          )
  
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 3 for calling a global function with example usage: set_cuda_device(device_id, verbose) without return types