code: def gen_trials(
      flags,
      prev_results_cb,
      opt_random_starts=3,
      opt_acq_func="gp_hedge",
      opt_kappa=1.96,
      opt_xi=0.01,
      opt_noise="gaussian",
      **kw,
  ):
      """ipy interface for trials."""
      return skopt_util.ipy_gen_trials(
          flags,
          prev_results_cb,
          _suggest_x,
          random_starts=opt_random_starts,
          suggest_x_opts={
              "acq-func": opt_acq_func,
              "kappa": opt_kappa,
              "xi": opt_xi,
              "noise": opt_noise,
          },
          **kw,
      )
  
imports: import logging
  from guild import batch_util
  from .None import skopt_util
label_desc: Use image node_id 3 for calling a global function with example usage: gen_trials(flags, prev_results_cb, opt_random_starts, opt_acq_func, opt_kappa, opt_xi, opt_noise) and returns: skopt_util