def METHOD_NAME(cls, mode: str) -> Dict[str, Any]:
    if cls.is_standalone:  # type: ignore
        return {"max_nb_of_workers": 1}
    if cls.is_development:
        return {}
    raise ModeNotAvailable(mode)