def append_concat_predictions(y_batch, predictions):
    """

    Args:
        y_batch (torch.Tensor or list):
        predictions (list): accumulation list where all the batched predictions are added

    Returns:
        list: predictions list with the new tensor appended
    """
    if isinstance(y_batch, list):
        predictions += y_batch
    else:
        predictions.append(y_batch)

    return predictions