class_docstr: euclidean GP factory 
class_docstr_tok: ["euclidean","GP","factory"]
docstr: Get different euclidean kernels based on kernel_type
code: def _get_kernel_from_type(cls, kernel_type, kernel_hyperparams):
      """Get different euclidean kernels based on kernel_type"""
      if kernel_type in ["se"]:
          return gp_kernel.SEKernel(
              kernel_hyperparams["dim"],
              kernel_hyperparams["scale"],
              kernel_hyperparams["dim_bandwidths"],
          )
      elif kernel_type in ["poly"]:
          return gp_kernel.PolyKernel(
              kernel_hyperparams["dim"],
              kernel_hyperparams["order"],
              kernel_hyperparams["scale"],
              kernel_hyperparams["dim_scalings"],
          )
      elif kernel_type in ["matern"]:
          return gp_kernel.MaternKernel(
              kernel_hyperparams["dim"],
              kernel_hyperparams["nu"],
              kernel_hyperparams["scale"],
              kernel_hyperparams["dim_bandwidths"],
          )
      elif kernel_type in ["esp"]:
          return gp_kernel.ESPKernelSE(
              kernel_hyperparams["dim"],
              kernel_hyperparams["scale"],
              kernel_hyperparams["order"],
              kernel_hyperparams["dim_bandwidths"],
          )
      else:
          raise ValueError(
              "Cannot construct kernel from kernel_type %s."
              % (kernel_type)
          )
  
imports: from __future__ import division
  from argparse import Namespace
  import numpy
  from .None import gp_core, mf_gp
  from .None import kernel
  from ..utils.ancillary_utils import get_list_of_floats_as_str
  from ..utils.general_utils import get_sublist_from_indices, map_to_bounds
  from ..utils.option_handler import get_option_specs, load_options
  from ..utils.oper_utils import random_sample_from_discrete_domain
  from ..utils.reporters import get_reporter
label_desc: Use image node_id 2 for calling the EuclideanGP obj's underlying member method code with example usage: obj._get_kernel_from_type(cls, kernel_type, kernel_hyperparams) and returns: gp_kernel, gp_kernel, gp_kernel, gp_kernel