<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_connection_state(self, connection: str) -> Dict[str, Any]: """ For an already established connection return its state. """

        if connection not in self.connections:
            raise ConnectionNotOpen(connection)

        return self.connections[connection].state