def METHOD_NAME(memory_ds):
    with memory_ds as ds:
        ds.create_tensor("abc", htype="nifti", sample_compression="nii.gz")
        ds.abc.append(deeplake.read(os.path.join(data_path, "example4d.nii.gz")))
        sample_info = ds.abc[0].sample_info
        for key in ("affine", "zooms"):
            assert key in sample_info