code: def cpu(tensor):
      if tensor.is_cuda:
          return tensor.cpu()
      else:
          return tensor
  
imports: import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: cpu(tensor) and returns: tensor, tensor