code: def set_device(device):
      if device == "CPU":
          C.try_set_default_device(C.device.cpu())
      elif device == "GPU" or device == "CUDA":
          try:
              C.try_set_default_device(C.device.gpu(0))
          except:
              C.use_default_device()
      else:
          C.use_default_device()
  
file_path: CNTK/bindings/python/onnx_cntk/backend.py
imports: import cntk
  import numpy
  from onnx import helper, TensorProto
  from onnx.backend.base import Backend
  from onnx.backend.base import BackendRep
label_desc: Use image node_id 1 for calling the CNTKBackend obj's underlying member method code with example usage: obj.set_device(device) without return types