code: def enable_from_env(state=None):
      
      try:
          x = os.environ.get(
              ENVVAR,
              state,
          )
          value = bool(int(x))
      except Exception:  # pylint: disable=broad-except
          value = bool(state)
  
      return enable(value)
docs: 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