code: def _tensor_to_object(tensor, tensor_size):
      buf = tensor.detach().cpu().numpy().tobytes()[:tensor_size]
      return _unpickler(io.BytesIO(buf)).load()
  
file_path: fastNLP/fastNLP/core/drivers/torch_driver/dist_utils.py
imports: import io
  import pickle
  import os
  from typing import Any, List
  from fastNLP.envs.imports import _TORCH_GREATER_EQUAL_1_8
  from fastNLP.core.utils.torch_utils import DEFAULT_TORCH_GROUP
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from fastNLP.envs.env import FASTNLP_NO_SYNC
  from fastNLP.core.utils import apply_to_collection
label_desc: Use image node_id 4 for calling a global function with example usage: _tensor_to_object(tensor, tensor_size) and returns: _unpickler