code: def to_cuda(x, device=None):
      if device:
          x = x.to(device)
      return x
  
imports: from operator import itemgetter
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: to_cuda(x, device) and returns: x