One paper gets accepted by AISTATS 2025. Provable Benefits of Task-Specific Prompts for In-context Learning