def METHOD_NAME(vineyard_ipc_socket, vineyard_endpoint, global_object):
    destination = '/tmp/seri-test'
    shutil.rmtree(destination, ignore_errors=True)
    vineyard.io.serialize(
        destination,
        global_object,
        vineyard_ipc_socket=vineyard_ipc_socket,
        vineyard_endpoint=vineyard_endpoint,
    )
    logger.info("finish serializing object to %s", destination)
    ret = vineyard.io.deserialize(
        destination,
        vineyard_ipc_socket=vineyard_ipc_socket,
        vineyard_endpoint=vineyard_endpoint,
    )
    logger.info("finish deserializing object from %s, as %s", destination, ret)
    client = vineyard.connect(vineyard_ipc_socket)
    expected = client.get(global_object)
    actual = client.get(ret)
    assert isinstance(expected, tuple)
    assert isinstance(actual, tuple)
    assert len(expected) == len(actual)
    for item1, item2 in zip(expected, actual):
        np.testing.assert_array_almost_equal(item1, item2)