code: def _wrap(text, wrap_at=120, indent=4):
      """
      Return piece of text, wrapped around if needed.
  
      :param text: text that may be too long and then needs to be wrapped.
      :param wrap_at: the maximum line length.
      :param indent: number of spaces to prepend to all subsequent lines after the first.
      """
      out = ""
      curr_line_length = indent
      space_needed = False
      for word in text.split():
          if curr_line_length + len(word) > wrap_at:
              out += "\n" + " " * indent
              curr_line_length = indent
              space_needed = False
          if space_needed:
              out += " "
              curr_line_length += 1
          out += word
          curr_line_length += len(word)
          space_needed = True
      return out
  
file_path: h2o-3/h2o-py/h2o/utils/debugging.py
imports: import inspect
  import re
  import sys
  from types import ModuleType
  from h2o.exceptions import H2OJobCancelled, H2OSoftError
  from h2o.utils.compatibility import *
label_desc: Use image node_id 8 for calling a global function with example usage: _wrap(text, wrap_at, indent) and returns: out