def METHOD_NAME(input_lang, output_lang, pair, device):
    input_tensor = sentence_to_tensor(input_lang, pair[0], device)
    target_tensor = sentence_to_tensor(output_lang, pair[1], device)
    return (input_tensor, target_tensor)