def METHOD_NAME(local_ds, compression, create_shape_tensor, empty_sample):
    with local_ds as ds:
        ds.create_tensor("xyz", create_shape_tensor=create_shape_tensor, **compression)
        ds.xyz.append(empty_sample)
        ds.xyz.append(empty_sample)
        ds.xyz.append(np.ones((100, 100, 3), dtype=np.uint8))
        for i in range(2):
            assert ds.xyz[i].numpy().shape == (0, 0, 0)
            assert ds.xyz[i].shape == (0, 0, 0)
        assert ds.xyz[2].numpy().shape == (100, 100, 3)
        assert ds.xyz[2].shape == (100, 100, 3)