code: def translate_name(name):
      """
      Convert names with underscores into camelcase.
  
      For example:
          "num_rows" => "numRows"
          "very_long_json_name" => "veryLongJsonName"
          "build_GBM_model" => "buildGbmModel"
          "KEY" => "key"
          "middle___underscores" => "middleUnderscores"
          "_exclude_fields" => "_excludeFields" (retain initial/trailing underscores)
          "__http_status__" => "__httpStatus__"
  
      :param name: name to be converted
      """
      parts = name.split("_")
      i = 0
      while parts[i] == "":
          parts[i] = "_"
          i += 1
      parts[i] = parts[i].lower()
      for j in range(i + 1, len(parts)):
          parts[j] = parts[j].capitalize()
      i = len(parts) - 1
      while parts[i] == "":
          parts[i] = "_"
          i -= 1
      return "".join(parts)
  
file_path: h2o-3/h2o-bindings/bin/gen_java.py
imports: import re
  import textwrap
  import bindings
label_desc: Use image node_id 3 for calling a global function with example usage: translate_name(name) and returns: str