code: def get_kernel_hyperparams(num_coeffs, kernel_type, dist_type):
      """Returns the kernel hyperparams for the unit-tests below."""
      # data
      mislabel_coeffs = [2.0, 2.0, 1.0, 1.0, 1.0]
      struct_coeffs = [0.25, 0.5, 1.0, 2.0, 4.0]
      # kernel params
      mislabel_coeffs = mislabel_coeffs[:num_coeffs]
      struct_coeffs = struct_coeffs[:num_coeffs]
      lp_betas = [1e-6] * num_coeffs
      emd_betas = [1] * num_coeffs
      lp_powers = [1] * num_coeffs
      emd_powers = [2] * num_coeffs
      if dist_type == "lp":
          betas = lp_betas
          powers = lp_powers
      elif dist_type == "emd":
          betas = emd_betas
          powers = emd_powers
      elif dist_type == "lp-emd":
          betas = [j for i in zip(lp_betas, emd_betas) for j in i]
          powers = [j for i in zip(lp_powers, emd_powers) for j in i]
      else:
          raise ValueError("Unknown dist_type: %s." % (dist_type))
      # Now construct the dictionary
      kernel_hyperparams = {}
      kernel_hyperparams["mislabel_coeffs"] = mislabel_coeffs
      kernel_hyperparams["struct_coeffs"] = struct_coeffs
      kernel_hyperparams["betas"] = betas
      kernel_hyperparams["powers"] = powers
      kernel_hyperparams["non_assignment_penalty"] = 1.0
      if kernel_type in ["lpemd_prod", "lp", "emd"]:
          kernel_hyperparams["scale"] = 1.0
      elif kernel_type in ["lpemd_sum"]:
          kernel_hyperparams["alphas"] = [1.0, 1.0]
      return kernel_hyperparams
  
imports: import numpy
  import unittest
  from .syn_nn_functions import syn_func1_common, cnn_syn_func1, mlp_syn_func1
  from .nn_examples import generate_cnn_architectures, generate_mlp_architectures
  from .None import nn_gp
  from ..utils.ancillary_utils import get_list_of_floats_as_str
  from ..utils.base_test_class import BaseTestClass, execute_tests
  from ..utils.option_handler import load_options
label_desc: Use image node_id 3 for calling a global function with example usage: get_kernel_hyperparams(num_coeffs, kernel_type, dist_type) and returns: kernel_hyperparams