A very simple datapack that lets any player turn any mob that has a baby variant into said baby variant.
It works on both single player and servers.
To turn a mob into a baby, simply rename it TurnIntoBaby with a nametag. If it has a baby variant, it will be transformed!
To revert the changes, simply rename the baby TurnIntoAdult and it will grow back up!