code: def puts(s='', newline=True, stream=STDOUT):
      
      max_width_ctx = _get_max_width_context()
      if max_width_ctx:
          cols, separator = max_width_ctx[-1]
          s = max_width(s, cols, separator)
  
      if newline:
          s = tsplit(s, NEWLINES)
          s = map(str, s)
          indent = ''.join(INDENT_STRINGS)
  
          s = (str('\n' + indent)).join(s)
  
      _str = ''.join((
          ''.join(INDENT_STRINGS),
          str(s),
          '\n' if newline else ''
      ))
      stream(_str)
docs: Prints given string to stdout.