A Template-Based Approach for Annotating Long-Tail Datasets