def METHOD_NAME(key: str) -> "Spec":
    """A Spec defined as "Key" means that when it is specified in a payload and not flagged as False,
    the spec code will be returned as value.
    """
    def compute(value: Optional[bool]) -> str:
        return key if (value is not False) else None
    return Spec(key, bool, compute)