In utils.py, add type hints to all function signatures. Return type of clamp should be float. Return type of to_bool should be bool. Do not change any other code.
