code: def random_trials_for_flags(flag_vals, count, random_seed=None):
      names, dims, initial_x = flag_dims(flag_vals)
      if not names:
          raise MissingSearchDimension(flag_vals)
      trials = _trials_for_dims(
          names, dims, initial_x, count, random_seed
      )
      _apply_missing_flag_vals(flag_vals, trials)
      return trials
  
imports: import logging
  import os
  import typing
  import warnings
  from guild import _skopt
  from guild import batch_util
  from guild import flag_util
  from guild import op_util
  from guild import query
label_desc: Use image node_id 1 for calling a global function with example usage: random_trials_for_flags(flag_vals, count, random_seed) and returns: trials