Actually, the code before does nothing if dataset is set to 'animals', 'turtle' or 'formal_turtle', most of the branches are inaccessible. Also, the extra else clause that raises an error and the line
elif dataset = 'formal_turtle':
are both invalid syntax.
I think 'clean up' here means something closer to 'convert this to what I'm trying to write'.
I think 'clean up' here means something closer to 'convert this to what I'm trying to write'.