code: def print_t(t1):
      d = t1.device()
      t1.ToHost()
      if t1.data_type() == singa_api.kInt:
          print(t1.GetIntValue(t1.Size()))
      elif t1.data_type() == singa_api.kFloat32:
          print(t1.GetFloatValue(t1.Size()))
      t1.ToDevice(d)
  
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 5 for calling a global function with example usage: print_t(t1) without return types