code: def dep2req(name, imported_by):
      
      lst = [item for item in sorted(imported_by) if not item.startswith(name)]
      res = '%-15s # from: ' % name
      imps = ', '.join(lst)
      if len(imps) < WIDTH - 24:
          return res + imps
      return res + imps[:WIDTH - 24 - 3] + '...'
docs: Convert dependency to requirement.