code: def gen_trials(
      flags,
      prev_results_cb,
      opt_random_starts=3,
      opt_kappa=1.96,
      opt_xi=0.01,
      **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={
              "kappa": opt_kappa,
              "xi": opt_xi,
          },
          **kw,
      )
  
imports: import logging
  from guild import _skopt
  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_kappa, opt_xi) and returns: skopt_util