How to do an sketch in an anndata object?

Hi, I need to do a subset to work with my data. I saw the function scanpy.pp.subsample but in my understand the subsampling is completely aleatory. Are there any ways to do a representative subset like the function sketchdata does in seurat?

You could try one of these: