<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_engine(engine):
 """ Parse the engine uri to determine where to store loggs """

        engine = (engine or '').strip()
        backend, path = URI_RE.match(engine).groups()

        if backend not in SUPPORTED_BACKENDS:
            raise NotImplementedError(
                "Logg supports only {0} for now.".format(SUPPORTED_BACKENDS))
        log.debug('Found engine: {0}'.format(engine))
        return backend, path