code: def suggest(new_ids, domain, trials, seed):
      rng = np.random.RandomState(seed)
      rval = []
      for ii, new_id in enumerate(new_ids):
          # -- sample new specs, idxs, vals
          idxs, vals = pyll.rec_eval(
              domain.s_idxs_vals,
              memo={
                  domain.s_new_ids: [new_id],
                  domain.s_rng: rng,
              },
          )
          new_result = domain.new_result()
          new_misc = dict(
              tid=new_id, cmd=domain.cmd, workdir=domain.workdir
          )
          miscs_update_idxs_vals([new_misc], idxs, vals)
          rval.extend(
              trials.new_trial_docs(
                  [new_id], [None], [new_result], [new_misc]
              )
          )
      return rval
  
imports: from __future__ import absolute_import
  import logging
  import numpy
  from .None import pyll
  from .base import miscs_update_idxs_vals
label_desc: Use image node_id 1 for calling a global function with example usage: suggest(new_ids, domain, trials, seed) and returns: rval