code: def _cTensor_to_pyTensor(cTensor):
      new_t = tensor.Tensor()
      new_t.data = cTensor
      new_t.shape = tuple(new_t.data.shape())
      new_t.device = new_t.data.device()
      new_t.dtype = new_t.data.data_type()
      return new_t
  
imports: from __future__ import division
  import unittest
  import math
  import numpy
  from singa import singa_wrap
  from singa import tensor
  from cuda_helper import gpu_dev, cpu_dev
label_desc: Use image node_id 3 for calling a global function with example usage: _cTensor_to_pyTensor(cTensor) and returns: new_t