This workflow is a one-click dataset generator. It will batch-create the images you specify in a list, name the files appropriately, sort them into folders, and even generate captions for you.
Here's a video showing off the workflow:
Here's an article written on how to use the workflow: