code: def _np2paddle(
      numpy_dict: Dict[str, np.ndarray], device: str = "cpu"
  ) -> Dict[str, paddle.Tensor]:
      for k, v in numpy_dict.items():
          numpy_dict[k] = paddle.to_tensor(v, place=device)
      return numpy_dict
  
file_path: safetensors/bindings/python/py_src/safetensors/paddle.py
imports: import os
  from typing import Dict, Optional, Union
  import numpy
  import paddle
  from safetensors import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: _np2paddle(numpy_dict, device) and returns: numpy_dict