code: def test_data_ptr_tensor_list_gpu():
      arr = np.random.rand(3, 5, 6)
      pipe = ExternalSourcePipe(arr.shape[0], arr)
      pipe.build()
      tensor_list = pipe.run()[0]
      tensor = tensor_list.as_tensor()
      from_tensor = py_buffer_from_address(
          tensor_list.data_ptr(),
          tensor.shape(),
          types.to_numpy_type(tensor.dtype),
          gpu=True,
      )
      # from_tensor is cupy array, convert arr to cupy as well
      assert cp.allclose(arr, from_tensor)
  
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 3 for calling a global function with example usage: test_data_ptr_tensor_list_gpu() without return types