def METHOD_NAME(runtime):
    """
    Return the runtime version number
    Parameters
    ----------
    runtime_version : str
        version of a runtime
    Returns
    -------
    float
        Runtime version number
    """
    if is_custom_runtime(runtime):
        return 1.0
    return float(re.search(r"\d+(\.\d+)?", runtime).group())