def get_targets(test_loader):
    """
    Returns targets from test_loader.
    """
    targets = []
    for i, sample in enumerate(test_loader):
        targets.extend(sample["target"].numpy())
    return targets