def METHOD_NAME(value: Union[int, str], max_val: int = ...) -> float:
    """
    Parse a value checking it's a valid int in the range 0 to max_val and divide by max_val to give a number
    in the range 0 to 1
    """
    ...