Use a dictionnary with heatmaps

Hello, I would like to use a dictonnary to specify the genes for a heatmap.

The dictionnary contains the 50 genes with the higher logfoldchange per cluster.

I do not know if I should use scanpy.pl.rank_genes_groups_heatmap or scanpy.pl.heatmap in order to highlight the difference in expression per cluster

Thanks for your help