code: def _space_for_flags(batch):
      flags = batch.batch_proto.get("flags")
      return {
          name: _space_for_flag_val(val, name)
          for name, val in flags.items()
      }
  
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 3 for calling a global function with example usage: _space_for_flags(batch) and returns: unknown