def METHOD_NAME(local_ds, empty_sample):
    with local_ds as ds:
        ds.create_tensor("xyz", chunk_compression="png")
        ds.xyz.append(empty_sample)
        ds.xyz.append(empty_sample)
        assert ds.xyz.meta.max_shape == [0, 0, 0]
        assert ds.xyz[0].shape == ()
        assert ds.xyz[1].shape == ()
        ds.xyz.append(np.ones((500, 500), "uint8"))
        assert ds.xyz.meta.max_shape == [500, 500]
        assert ds.xyz[0].numpy().shape == (0, 0)
        assert ds.xyz[0].shape == (0, 0)
        assert ds.xyz[1].numpy().shape == (0, 0)
        assert ds.xyz[1].shape == (0, 0)
        assert ds.xyz[2].numpy().shape == (500, 500)
        assert ds.xyz[2].shape == (500, 500)