code: def generate_enum(name, values):
      bi.vprint("Generating enum " + name)
      yield "enum %s {" % name
      for i, value in enumerate(values):
          yield "  %s = %d," % (value, i + 1)
      yield "}"
      yield ""
  
file_path: h2o-3/h2o-bindings/bin/gen_thrift.py
imports: from collections import OrderedDict
  import bindings
label_desc: Use image node_id 4 for calling a global function with example usage: generate_enum(name, values) without return types