def METHOD_NAME(signable: Dict[str, Any], builder: Callable):
    try:
        return builder(signable)
    except RuntimeError:
        raise HTTPException(
            status_code=status.HTTP_400_BAD_REQUEST, detail="Invalid role definition"
        )