<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable_from_env(state=None):
 """ Enable certification for this thread based on the environment variable `CERTIFIABLE_STATE`. :param bool state: Default status to use. :return: The new state. :rtype: bool """

    try:
        x = os.environ.get(
            ENVVAR,
            state,
        )
        value = bool(int(x))
    except Exception:  # pylint: disable=broad-except
        value = bool(state)

    return enable(value)