code: def _set_up_dim_bandwidths(
      dom_identifier,
      curr_dom_Xs,
      use_same_bandwidth,
      dim,
      cts_hp_bounds,
      param_order,
  ):
      """Set up for dim bandwidths."""
      hp_identifier = "%s-%s" % (dom_identifier, "dom_bandwidths")
      if len(curr_dom_Xs) > 0:
          # If there is data
          assert (
              len(curr_dom_Xs[0]) == dim
          )  # temporary: check this condition
          curr_dom_Xs = np.array(curr_dom_Xs)
          curr_dom_mean_diffs = curr_dom_Xs - curr_dom_Xs.mean(axis=0)
          curr_dom_X_std_norms = [
              np.linalg.norm(curr_dom_mean_diffs[:, idx]) + 1e-4
              for idx in range(dim)
          ]
      else:
          curr_dom_X_std_norms = [1.0] * dim
      if use_same_bandwidth:
          bandwidth_log_bounds = [
              np.log(0.01 * curr_dom_X_std_norms.min()),
              np.log(100 * curr_dom_X_std_norms.max()),
          ]
          cts_hp_bounds.append(bandwidth_log_bounds)
          param_order.append([hp_identifier + "-same_bandwidth", "cts"])
      else:
          bandwidth_log_bounds = [
              [np.log(0.01 * elem), np.log(100 * elem)]
              for elem in curr_dom_X_std_norms
          ]
          cts_hp_bounds.extend(bandwidth_log_bounds)
          param_order.extend(
              [
                  [hp_identifier + "-%d" % (idx), "cts"]
                  for idx in range(len(bandwidth_log_bounds))
              ]
          )
      return cts_hp_bounds, param_order
  
imports: from __future__ import print_function
  from argparse import Namespace
  import numpy
  from ..exd import domains
  from ..exd.cp_domain_utils import load_cp_domain_from_config_file
  from .None import gp_core, mf_gp
  from .euclidean_gp import get_euclidean_integral_gp_kernel_with_scale, prep_euclidean_integral_kernel_hyperparams
  from .kernel import CartesianProductKernel, HammingKernel
  from ..utils.general_utils import get_idxs_from_list_of_lists
  from ..utils.option_handler import get_option_specs, load_options
  from ..utils.reporters import get_reporter
label_desc: Use image node_id 6 for calling a global function with example usage: _set_up_dim_bandwidths(dom_identifier, curr_dom_Xs, use_same_bandwidth, dim, cts_hp_bounds, param_order) and returns: cts_hp_bounds,  param_order