code: def test_tensorlist_shape():
      shapes = [(3, 4, 5, 6), (1, 8, 7, 6, 5), (1,), (1, 1)]
      for shape in shapes:
          arr = np.empty(shape)
          tl = TensorListCPU(arr)
          tl_gpu = tl._as_gpu()
          assert tl.shape() == [shape[1:]] * shape[0]
          assert tl_gpu.shape() == [shape[1:]] * shape[0]
  
imports: import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  import warnings
  from numpy.testing import assert_array_equal
  from nvidia.dali import pipeline_def
  from nvidia.dali.backend_impl import TensorCPU, TensorListCPU, TensorListGPU
  from nvidia.dali.backend_impl import types
  import nvidia.dali
  from nose_utils import assert_raises
  from nose import SkipTest
  from test_utils import dali_type_to_np, py_buffer_from_address, get_device_memory_info
label_desc: Use image node_id 18 for calling a global function with example usage: test_tensorlist_shape() without return types