code: def test_tensorlist_dtype():
      dali_types = types._all_types
      np_types = list(map(dali_type_to_np, dali_types))
  
      for dali_type, np_type in zip(dali_types, np_types):
          tl = TensorListCPU([TensorCPU(np.zeros((1), dtype=np_type))])
  
          assert tl.dtype == dali_type
          assert tl._as_gpu().dtype == dali_type
  
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 28 for calling a global function with example usage: test_tensorlist_dtype() without return types