code: def _tensor_to_object(tensor, tensor_size):
      buf = (
          tensor.astype(paddle.uint8)
          .detach()
          .cpu()
          .numpy()
          .tobytes()[:tensor_size]
      )
      return paddle_pickle_load(io.BytesIO(buf))
  
file_path: fastNLP/fastNLP/core/drivers/paddle_driver/dist_utils.py
imports: import io
  import pickle
  import os
  from typing import Any, List
  import numpy
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
  from fastNLP.envs.env import FASTNLP_NO_SYNC
  from fastNLP.core.utils import paddle_move_data_to_device
label_desc: Use image node_id 5 for calling a global function with example usage: _tensor_to_object(tensor, tensor_size) and returns: paddle_pickle_load