def METHOD_NAME(self):
    data = make_data()
    builder = make_code_builder(data)
    coder = builder.build_code()
    encoded = [coder.encode(sentence) for sentence in data]
    decoded = [[n.symbol for n in coder.decode(enc)] for enc in encoded]
    self.assertEqual(decoded, data)
    unseen_data = make_data()
    unseen_encoded = [coder.encode(sentence) for sentence in unseen_data]
    unseen_decoded = [
        [n.symbol for n in coder.decode(enc)] for enc in unseen_encoded
    ]
    self.assertEqual(unseen_decoded, unseen_data)