code: def test_run_algo(self) -> None:
      algo_dict = self.history[-1]
      algo = algo_dict[AlgoKeys.ALGO]
      nni_gen = NNIGen(algo=algo, params=override_param)
      obj_filename = nni_gen.get_obj_filename()
      # this function will be used in HPO via Python Fire
      NNIGen().run_algo(obj_filename, self.work_dir)
  
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from functools import partial
  import nibabel
  import numpy
  import torch
  from monai.apps.auto3dseg import BundleGen, DataAnalyzer, NNIGen, OptunaGen, import_bundle_algo_history
  from monai.bundle.config_parser import ConfigParser
  from monai.data import create_test_image_3d
  from monai.utils import optional_import
  from monai.utils.enums import AlgoKeys
  from tests.utils import SkipIfBeforePyTorchVersion, get_testing_algo_template_path, skip_if_downloading_fails, skip_if_no_cuda
label_desc: Use image node_id 2 for calling the TestHPO obj's underlying member method code with example usage: obj.test_run_algo() without return types