code: def wrap (text, width, **kwargs):
      
      if width <= 0 or not text:
          return text
      ret = []
      for para in get_paragraphs(text):
          text = " ".join(para.strip().split())
          ret.extend(textwrap.wrap(text, width, **kwargs))
      return os.linesep.join(ret)
docs: Adjust lines of text to be not longer than width. The text will be
      returned unmodified if width <= 0.
      See textwrap.wrap() for a list of supported kwargs.
      Returns text with lines no longer than given width.