code: def _label_best(trial):
      run = trial["result"]["run"]
      log.info("Labeling best run %s", run.id)
      run.write_attr("label", "best %s" % run.get("label"))
  
file_path: guildai/examples/hyperopt/tpe.py
imports: import logging
  from guild import batch_util
  from guild import flag_util
  from guild import index
  import numpy
  import hyperopt
label_desc: Use image node_id 7 for calling a global function with example usage: _label_best(trial) without return types