code: def test_tensor_from_tensor_list_cpu():
      def create_tl(idx):
          a = np.full((3, 4), idx)
          return tensors.TensorListCPU(a, "")
  
      out = []
      for i in range(5):
          ts = [t for t in create_tl(i)]
          out += ts
      for i, t in enumerate(out):
          np.testing.assert_array_equal(
              np.array(t), np.full((4,), i // 3)
          )
  
imports: from nvidia.dali.backend_impl import TensorGPU, TensorListGPU
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.tensors
  import nvidia.dali.types
  import numpy
  from nose_utils import assert_raises, raises
  import cupy
  from test_utils import py_buffer_from_address
label_desc: Use image node_id 30 for calling a global function with example usage: test_tensor_from_tensor_list_cpu() and returns: tensors