My split_data function runs multiple times

My split_data function runs the code block to filter cats zero size images 4 times:
666.jpg is zero length, so ignoring.
666.jpg is zero length, so ignoring
666.jpg is zero length, so ignoring.
666.jpg is zero length, so ignoring
Twice for cats and twice for dogs and doesn’t run the filer for dogs.

Notebook markdown on the expected output is correct.
Please fix your code. Here’s a thread that lists the steps.