code: def test_autorunner_ensemble(self) -> None:
      work_dir = os.path.join(self.test_path, "work_dir")
      runner = AutoRunner(
          work_dir=work_dir,
          input=self.data_src_cfg,
          templates_path_or_url=get_testing_algo_template_path(),
          allow_skip=False,
      )
      runner.set_training_params(train_param)  # 2 epochs
      runner.set_ensemble_method("AlgoEnsembleBestByFold")
      runner.set_num_fold(1)
      with skip_if_downloading_fails():
          runner.run()
  
file_path: MONAI/tests/test_integration_autorunner.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  import nibabel
  import numpy
  import torch
  from monai.apps.auto3dseg import AutoRunner
  from monai.bundle.config_parser import ConfigParser
  from monai.data import create_test_image_3d
  from monai.utils import optional_import
  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 3 for calling the TestAutoRunner obj's underlying member method code with example usage: obj.test_autorunner_ensemble() without return types