def batch_statistics(batch):
    """
    Computes the total number of task and the number of labeled tasks in a batch.

    Args:
        batch: identifier of a batch

    Returns: total number of tasks in batch, number of labeled tasks in batch
    """
    lc = 0
    for task in batch["tasks"]:
        if task["is_labeled"]:
            lc += 1

    return len(batch["tasks"]), lc