code: def dump(work: LightningWork, f: typing.BinaryIO) -> None:
      picklable_work = get_picklable_work(work)
      pickle.dump(picklable_work, f)
  
file_path: pytorch-lightning/src/lightning/app/utilities/safe_pickle.py
imports: import contextlib
  import pickle
  import sys
  import types
  import typing
  from copy import deepcopy
  from pathlib import Path
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.app_helpers import _LightningAppRef
label_desc: Use image node_id 3 for calling a global function with example usage: dump(work, f) without return types