def _get_versions(dcos_url):

    dcos_info = {}
    try:
        url = urllib.parse.urljoin(
            dcos_url, 'dcos-metadata/dcos-version.json')
        res = http.get(url, timeout=1)
        if res.status_code == 200:
            dcos_info = res.json()
    except Exception as e:
        logger.exception(e)
        pass

    emitter.publish(
        "dcoscli.version={}\n".format(dcoscli.version) +
        "dcos.version={}\n".format(dcos_info.get("version", "N/A")) +
        "dcos.commit={}\n".format(dcos_info.get(
            "dcos-image-commit", "N/A")) +
        "dcos.bootstrap-id={}".format(dcos_info.get("bootstrap-id", "N/A"))
    )
    return 0
Computes the correlation matrix of a matrix X.  Requires a 2D matrix input.
dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/main.py/_get_versions--crossover with--dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/acorrelation