def safe_version(version):
    try:
        # normalize the version
        return str(packaging.version.Version(version))
    except packaging.version.InvalidVersion:
        version = version.replace(' ','.')
        return re.sub('[^A-Za-z0-9.]+', '-', version)
Format `points` parameter.
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/safe_version--crossover with--dataset/ETHPy150Open DataDog/datadogpy/datadog/api/metrics.py/Metric._process_points