code: def dedent(ind, text):
      """
      Dedent text to the specific indentation level.
  
      :param ind: common indentation level for the resulting text (number of spaces to append to every line)
      :param text: text that should be transformed.
      :return: ``text`` with all common indentation removed, and then the specified amount of indentation added.
      """
      text2 = textwrap.dedent(text)
      if ind == 0:
          return text2
      indent_str = " " * ind
      return "\n".join(indent_str + line for line in text2.split("\n"))
  
file_path: h2o-3/h2o-bindings/bin/gen_java.py
imports: import re
  import textwrap
  import bindings
label_desc: Use image node_id 4 for calling a global function with example usage: dedent(ind, text) and returns: str, text2