Filter out items from Dataset?

Is there a recommended way to filter out items from a dataset or a DataLoader? According to a predicate that inspects the item and returns True if it should be kept.