code: def gen_trials(
      flags,
      _prev_results,
      max_trials=DEFAULT_MAX_TRIALS,
      random_seed=None,
      **_opts,
  ):
      """ipy interface for randomly generated trials."""
      return skopt_util.random_trials_for_flags(
          flags, max_trials, random_seed
      )
  
file_path: guildai/guild/plugins/random_main.py
imports: import logging
  import sys
  import typing
  from guild import batch_util
  from .None import skopt_util
label_desc: Use image node_id 4 for calling a global function with example usage: gen_trials(flags, _prev_results, max_trials, random_seed) and returns: skopt_util