code: def paddle_pickle_dump(obj, stream, protocol):
      """
      Reference to `paddle.save`
      """
      if _is_state_dict(obj):
          saved_obj = _build_saved_state_dict(obj)
          saved_obj = _unpack_saved_dict(saved_obj, protocol)
          pickle.dump(saved_obj, stream, protocol=protocol)
      else:
          _pickle_save(obj, stream, protocol)
  
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 2 for calling a global function with example usage: paddle_pickle_dump(obj, stream, protocol) without return types