def encode(sample_encoder, label_encoder, variant):
    """Generate sample and label encoding for variant."""
    encoding = sample_encoder(variant)
    label = label_encoder(variant)
    return (encoding, label)