code: def to_paddle_type(tensor):
      r"""
      Get paddle dtype for given tensor or tensor list
  
      Args:
          tensor: tensor or tensor list
  
      Returns: paddle.framework.core.VarDesc.VarType
      """
      return dtype_map[tensor.dtype]
  
file_path: DALI/dali/python/nvidia/dali/plugin/paddle.py
imports: import ctypes
  import math
  import numpy
  import paddle
  from distutils.version import LooseVersion
  from nvidia.dali import types
  from nvidia.dali.backend import TensorListCPU, TensorGPU, TensorListGPU
  from nvidia.dali.plugin.base_iterator import _DaliBaseIterator
  from nvidia.dali.plugin.base_iterator import LastBatchPolicy
label_desc: Use image node_id 1 for calling a global function with example usage: to_paddle_type(tensor) and returns: dtype_map