code: def test_move_bundle_gen_folder(self) -> None:
      test_path = self.test_dir.name
      work_dir = os.path.join(test_path, "workdir")
      (
          dataroot_dir,
          datalist_file,
          datastats_file,
      ) = run_auto3dseg_before_bundlegen(test_path, work_dir)
      data_src = {
          "name": "fake_data",
          "task": "segmentation",
          "modality": "MRI",
          "datalist": datalist_file,
          "dataroot": dataroot_dir,
          "multigpu": False,
          "class_names": ["label_class"],
      }
      data_src_cfg = os.path.join(work_dir, "data_src_cfg.yaml")
      ConfigParser.export_config_file(data_src, data_src_cfg)
  
      sys_path = sys.path.copy()
      with skip_if_downloading_fails():
          bundle_generator = BundleGen(
              algo_path=work_dir,
              data_stats_filename=datastats_file,
              data_src_cfg_name=data_src_cfg,
              templates_path_or_url=get_testing_algo_template_path(),
          )
  
      bundle_generator.generate(work_dir, num_fold=1)
      history_before = bundle_generator.get_history()
      export_bundle_algo_history(history_before)
  
      sys.path = sys_path  # prevent the import_bundle_algo_history from using the path "work_dir/algorithm_templates"
      tempfile.TemporaryDirectory()
      work_dir_new = os.path.join(test_path, "workdir_2")
      shutil.move(work_dir, work_dir_new)
      history_after = import_bundle_algo_history(
          work_dir_new, only_trained=False
      )
      self.assertEqual(len(history_before), len(history_after))
  
imports: from __future__ import annotations
  import os
  import shutil
  import sys
  import tempfile
  import unittest
  import nibabel
  import numpy
  import torch
  from monai.apps.auto3dseg import BundleGen, DataAnalyzer
  from monai.apps.auto3dseg.utils import export_bundle_algo_history, import_bundle_algo_history
  from monai.bundle.config_parser import ConfigParser
  from monai.data import create_test_image_3d
  from monai.utils import set_determinism
  from tests.utils import SkipIfBeforePyTorchVersion, get_testing_algo_template_path, skip_if_downloading_fails, skip_if_no_cuda, skip_if_quick
label_desc: Use image node_id 2 for calling the TestBundleGen obj's underlying member method code with example usage: obj.test_move_bundle_gen_folder() without return types