code: def build_from_queue(cls, input_queue, replay_size, batch_size):
      
      return cls(
          lambda: input_queue.dequeue_many(batch_size),
          replay_size,
          batch_size=batch_size)
docs: Builds a `ReplayableQueue` that draws from a regular `input_queue`.
  
      Args:
        input_queue: The queue to draw from.
        replay_size: The size of the replay buffer.
        batch_size: The size of each batch.
  
      Returns:
        A ReplayableQueue.