docstr: Return the executor
docstr_tok: ["Return","the","executor"]
code: def get_hpo_executor(hpo_executor: str) -> HpoExecutor:
      """Return the executor"""
      assert (
          hpo_executor in HpoExecutorFactory.__type_to_executor
      ), f"{hpo_executor} not supported"
      return HpoExecutorFactory.__type_to_executor[hpo_executor]
  
imports: from __future__ import annotations
  import copy
  import logging
  import math
  import os
  import time
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
  import pandas
  from autogluon.common import space
  from autogluon.common.utils.resource_utils import ResourceManager
  from autogluon.common.utils.s3_utils import is_s3_url
  from ..ray.resources_calculator import ResourceCalculator
  from ..scheduler.scheduler_factory import scheduler_factory
  from ..utils.savers import save_pkl
  from .constants import CUSTOM_BACKEND, RAY_BACKEND
  from .exceptions import EmptySearchSpace
label_desc: Use image node_id 1 for calling the HpoExecutorFactory obj's underlying member method code with example usage: obj.get_hpo_executor(hpo_executor) and returns: HpoExecutorFactory