code: def _device_info(c: DeviceConfigs):
      return DeviceInfo(use_cuda=c.use_cuda, cuda_device=c.cuda_device)
  
file_path: labml/helpers/labml_helpers/device.py
imports: import torch
  from labml.configs import BaseConfigs, hyperparams, option
label_desc: Use image node_id 2 for calling a global function with example usage: _device_info(c) and returns: DeviceInfo