code: def pickle_to_file(fname, obj, output=None):
      if output is not None:
          with open(output + fname, "wb") as f:
              pickle.dump(obj, f)
  
imports: import pickle
  from itertools import chain, combinations
label_desc: Use image node_id 2 for calling a global function with example usage: pickle_to_file(fname, obj, output) without return types