Sketch doesn't keep the move after a wifi battle. The best you can do is teach swords dance to a pokémon with the TM and then go to one of those restaurants in Luminous city and double battle with Smeargle and that poke. Use swords dance with that pokémon and then use sketch with smeargle on your pokémon. Voilà.