code: def download(args):
    
  
    downloader = Downloader(server_index_url = args.server_index_url)
    if args.packages:
      for pkg_id in args.packages:
        rv = downloader.download(info_or_id=unicode(pkg_id), download_dir=args.dir,
                                 quiet=args.quiet, force=args.force,
                                 halt_on_error=args.halt_on_error)
        if rv == False and args.halt_on_error:
          break
    else:
      downloader.download(download_dir=args.dir, quiet=args.quiet, force=args.force,
                          halt_on_error=args.halt_on_error)
docs: Download polyglot packages and models.