code: def indent (text, indent_string="  "):
      
      lines = str(text).splitlines()
      return os.linesep.join("%s%s" % (indent_string, x) for x in lines)
docs: Indent each line of text with the given indent string.