code: def hp_choice(label, options):
      ch = scope.hyperopt_param(label, scope.randint(len(options)))
      return scope.switch(ch, *options)
  
imports: from functools import partial, wraps
  from .base import DuplicateLabel
  from .pyll.base import Apply, Literal, MissingArgument
  from .pyll import scope
  from .pyll import as_apply
label_desc: Use image node_id 5 for calling a global function with example usage: hp_choice(label, options) and returns: scope