<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(line):
 """ Parse protocol and bound address from log message (None, None) ('http', '127.0.0.1:4200') ('transport', '127.0.0.1:4300') ('psql', '127.0.0.1:5432') """

        m = AddrConsumer.ADDRESS_RE.match(line)
        if not m:
            return None, None
        protocol = m.group('protocol')
        protocol = AddrConsumer.PROTOCOL_MAP.get(protocol, protocol)
        return protocol, m.group('addr')