code: def wrap(s, width=80):
      
      return '\n'.join(textwrap.wrap(str(s), width=width))
docs: Formats the text input with newlines given the user specified width for
      each line.
  
      Parameters
      ----------
  
      s : str
      width : int
  
      Returns
      -------
  
      text : str
  
      Notes
      -----
  
      .. versionadded:: 1.1