code: def download(remote_location, remotes=None, prefix="", dry_run=False):
      
      if remotes is None:
          remotes, _ = _resources_files(
              abs_paths=remote_location.startswith('s3://'))
      if remote_location.startswith('s3://'):
          from .s3 import S3Backend
          backend = S3Backend(remote_location, dry_run=dry_run)
          backend.download(list_local(remotes, prefix), prefix)
      else:
          dest_root = '.'
          shell_command([
                  '/usr/bin/rsync',
                  '-thrRvz', '--rsync-path', '/usr/bin/rsync',
                  '%s/./' % remote_location, dest_root], dry_run=dry_run)
docs: Download resources from a stage server.