<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _decode_and_evaluate(decoder: checkpoint_decoder.CheckpointDecoder, checkpoint: int, output_name: str, queue: multiprocessing.Queue):
 """ Decodes and evaluates using given checkpoint_decoder and puts result in the queue, indexed by the checkpoint. """

    metrics = decoder.decode_and_evaluate(checkpoint, output_name)
    queue.put((checkpoint, metrics))