code: def test_tensor_gpu_from_dlpack():
      def create_tmp(idx):
          a = np.full((4, 4), idx)
          dlt = to_dlpack(torch.from_numpy(a).cuda())
          return tensors.TensorGPU(dlt, "")
  
      out = [create_tmp(i) for i in range(4)]
      for i, t in enumerate(out):
          np.testing.assert_array_equal(
              np.array(t.as_cpu()), np.full((4, 4), i)
          )
  
imports: from nvidia.dali.tensors import TensorCPU, TensorGPU, TensorListCPU, TensorListGPU
  import nvidia.dali.tensors
  import numpy
  import torch
  from torch.utils.dlpack import to_dlpack
  import ctypes
  from nvidia.dali.backend import CheckDLPackCapsule
label_desc: Use image node_id 13 for calling a global function with example usage: test_tensor_gpu_from_dlpack() and returns: tensors