def METHOD_NAME(self):
    """
    Tuples should be encoded as arrays and decoded back as lists.
    """
    test_vectors = [
        ([], '80'),
        ([1, 2, 3], '83010203'),
        ([1, [2, 3], [4, 5]], '8301820203820405'),
        (list(range(1, 26)), '98190102030405060708090a0b0c0d0e0f101112131415161718181819'),
    ]
    for val, encoded_hex in test_vectors:
        value_tuple = tuple(val)
        encoded = unhexlify(encoded_hex)
        self.assertEqual(encode(value_tuple), encoded)
        self.assertEqual(decode(encoded), val)