def METHOD_NAME(self, *, mode):
    memory_pipe = MemoryPipe(x_queue=self.x_queue, y_queue=self.y_queue, mode=mode)
    pipe_handler = PipeHandler(
        memory_pipe,
        read_interval=self.read_interval,
        heartbeat_interval=self.heartbeat_interval,
        heartbeat_timeout=self.heartbeat_timeout,
    )
    pipe_handler.start()
    return pipe_handler