def METHOD_NAME(
    fixture_lookup, serialization_fixture, encode_function, decode_function
):
    """test_serialization_encode"""
    _, value, specs = fixture_lookup(serialization_fixture)
    returned = encode_function(value, specs)
    returned = decode_function(returned, specs)
    tf.nest.assert_same_structure(value, returned)
    assert all(
        [
            np.array_equal(v, r)
            for v, r in zip(tf.nest.flatten(value), tf.nest.flatten(returned))
        ]
    )