<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_event_q(self, event_name):
 """Obtain the queue storing events of the specified name. If no event of this name has been polled, wait for one to. Returns: A queue storing all the events of the specified name. None if timed out. Raises: queue.Empty: Raised if the queue does not exist and timeout has passed. """

        self.lock.acquire()
        if not event_name in self.event_dict or self.event_dict[
                event_name] is None:
            self.event_dict[event_name] = queue.Queue()
        self.lock.release()

        event_queue = self.event_dict[event_name]
        return event_queue