I have a TF dataset
train_ds = train_ds.cache().shuffle(1000).prefetch(buffer_size=AUTOTUNE)
val_ds = val_ds.cache().prefetch(buffer_size=AUTOTUNE)
And since my data is huge (100,000) I want to select only a subset of data to train on So i need to create a new TF dataset from the old dataset