code: def save_pickle(obj, fname):
      """
      Save the object to file via pickling.
  
      Parameters
      ----------
      fname : {str, pathlib.Path}
          Filename to pickle to
      """
      import pickle
  
      with get_file_obj(fname, "wb") as fout:
          pickle.dump(obj, fout, protocol=-1)
  
label_desc: Use image node_id 1 for calling a global function with example usage: save_pickle(obj, fname) without return types