code: def _DeviceTensors(tensors, devices):
      res = []
      for t, d in zip(tensors, devices):
          with ops.device(d):
              res.append(array_ops.identity(t))
      return res
  
imports: from functools import partial
  import numpy
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients
  from tensorflow.python.ops import nccl_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _DeviceTensors(tensors, devices) and returns: res