code: def generate_enum(name, values):
      # If values contain some reserved Java keywords, switch to all-uppercase naming scheme
      if {
          "enum",
          "int",
          "double",
          "boolean",
          "long",
          "byte",
          "class",
          "lambda",
          "null",
      } & set(values):
          values = [v.upper() for v in values]
      yield "/*"
      yield " * This file is auto-generated by h2o-3/h2o-bindings/bin/gen_java.py"
      yield " * Copyright 2016 H2O.ai;  Apache License Version 2.0 (see LICENSE for details)"
      yield " */"
      yield "package water.bindings.pojos;"
      yield ""
      yield "public enum " + name + " {"
      for value in values:
          yield "    %s," % value
      yield "}"
  
file_path: h2o-3/h2o-bindings/bin/gen_java.py
imports: import re
  import textwrap
  import bindings
label_desc: Use image node_id 6 for calling a global function with example usage: generate_enum(name, values) without return types