<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_queue(self, register=False):
 """Create a new work queue and optionally register it. This will make sure the queue is attached to the correct event loop. You can optionally choose to automatically register it so that wait_idle() will block until the queue is empty. Args: register (bool):
 Whether to call register_workqueue() automatically. Returns: asyncio.Queue: The newly created queue. """


        queue = asyncio.Queue(loop=self._loop)
        if register:
            self._work_queues.add(queue)

        return queue