code: def eval_params_search(params_search, params_override):
      def eval_param(param_):
          param_ = json.loads(param_)
          if "/" not in param_["name"]:
              param_["name"] = "General/{}".format(param_["name"])
          return param_
  
      type_map = {
          "LogUniformParameterRange": LogUniformParameterRange,
          "UniformParameterRange": UniformParameterRange,
          "UniformIntegerParameterRange": UniformIntegerParameterRange,
          "DiscreteParameterRange": DiscreteParameterRange,
      }
      result = []
      for param in params_search:
          param = eval_param(param)
          if param["type"] not in type_map:
              print("Invalid parameter type '{}'".format(param["type"]))
              exit(1)
          type_str = param.pop("type")
          type_ = type_map[type_str]
          try:
              result.append(type_(**param))
          except Exception as e:
              print(
                  "Failed instantiating object of type {} with arguments {}. Error is: {}".format(
                      type_str, param, e
                  )
              )
              exit(1)
      for param in params_override:
          param = eval_param(param)
          result.append(
              DiscreteParameterRange(
                  param["name"], values=[param["value"]]
              )
          )
      return result
  
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 2 for calling a global function with example usage: eval_params_search(params_search, params_override) and returns: result, param_