class_docstr: Describes device type and device id
  syntax: device_type:device_id(optional)
  example: 'CPU', 'CUDA', 'CUDA:1'
class_docstr_tok: ["Describes","device","type","and","device","id","syntax",":","device_type",":","device_id","(","optional",")","example",":","'CPU","'",",","'CUDA","'",",","'CUDA:1","'"]
code: def __init__(self, device: str) -> None:
      options = device.split(":")
      self.type = getattr(DeviceType, options[0])
      self.device_id = 0
      if len(options) > 1:
          self.device_id = int(options[1])
  
file_path: onnx/onnx/backend/base.py
imports: from collections import namedtuple
  from typing import Any, Dict, NewType, Optional, Sequence, Tuple, Type
  import numpy
  import onnx.checker
  import onnx.onnx_cpp2py_export.checker
  from onnx import IR_VERSION, ModelProto, NodeProto
label_desc: Use image node_id 1 to create a new Device object  with example: obj = Device(device)