def get_system_info(download_location):

    if not exists(TMP_PRESTO_DEBUG):
        run("mkdir " + TMP_PRESTO_DEBUG)

    version_file_name = os.path.join(TMP_PRESTO_DEBUG, 'version_info.txt')

    if exists(version_file_name):
        run('rm -f ' + version_file_name)

    append(version_file_name, "platform information : " +
           get_platform_information() + '\n')
    append(version_file_name, 'Java version: ' + get_java_version() + '\n')
    append(version_file_name, 'Presto-admin version: ' +
           prestoadmin.__version__ + '\n')
    append(version_file_name, 'Presto server version: ' +
           get_presto_version() + '\n')

    _LOGGER.debug('Gathered version information in file: ' + version_file_name)

    get_files(version_file_name, download_location)
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/collect.py/get_system_info/original