code: def export_bundle_algo_history(
      history: list[dict[str, BundleAlgo]]
  ) -> None:
      """
      Save all the BundleAlgo in the history to algo_object.pkl in each individual folder
  
      Args:
          history: a List of Bundle. Typically, the history can be obtained from BundleGen get_history method
      """
      for algo_dict in history:
          algo = algo_dict[AlgoKeys.ALGO]
          algo_to_pickle(algo, template_path=algo.template_path)
  
file_path: MONAI/monai/apps/auto3dseg/utils.py
imports: from __future__ import annotations
  import os
  from monai.apps.auto3dseg.bundle_gen import BundleAlgo
  from monai.auto3dseg import algo_from_pickle, algo_to_pickle
  from monai.utils.enums import AlgoKeys
label_desc: Use image node_id 2 for calling a global function with example usage: export_bundle_algo_history(history) without return types