code: def __str__(self):
      if not self.is_cuda:
          return "CPU"
  
      if self.cuda_device < self.cuda_count:
          return f"GPU:{self.cuda_device} - {torch.cuda.get_device_name(self.cuda_device)}"
      else:
          return (
              f"GPU:{self.cuda_count - 1}({self.cuda_device}) "
              f"- {torch.cuda.get_device_name(self.cuda_count - 1)}"
          )
  
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 the DeviceInfo obj's underlying member method code with example usage: obj.__str__() and returns: str, str, self, str, torch, str, unknown, str, self, str, torch