<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connected(self, node_id):
 """Return True iff the node_id is connected."""

        conn = self._conns.get(node_id)
        if conn is None:
            return False
        return conn.connected()