Using generative AI to investigate medical imagery models and datasets