code: def eval_optimizer_class(optimizer_class):
      type_map = {
          "OptimizerOptuna": OptimizerOptuna,
          "OptimizerBOHB": OptimizerBOHB,
          "GridSearch": GridSearch,
          "RandomSearch": RandomSearch,
      }
      errors = {
          "OptimizerOptuna": "OptimizerOptuna requires 'optuna' package, it was not found.\n"
          " Install with: pip install optuna",
          "OptimizerBOHB": "OptimizerBOHB requires 'hpbandster' package, it was not found.\n"
          "Install with: pip install hpbandster",
      }
      if optimizer_class not in type_map:
          print("Invalid optimizer class '{}'".format(optimizer_class))
          exit(1)
      if type_map[optimizer_class] is None:
          print(errors[optimizer_class])
          exit(1)
      return type_map[optimizer_class]
  
file_path: clearml/clearml/cli/hpo/__main__.py
imports: import json
  import sys
  from argparse import ArgumentParser, RawTextHelpFormatter
  import clearml.backend_api.session
  from clearml import Task
  from clearml.automation import DiscreteParameterRange, UniformIntegerParameterRange, UniformParameterRange, LogUniformParameterRange, HyperParameterOptimizer, RandomSearch, GridSearch
  from clearml.backend_interface.task.populate import CreateAndPopulate
  from clearml.version import __version__
label_desc: Use image node_id 3 for calling a global function with example usage: eval_optimizer_class(optimizer_class) and returns: type_map