class_docstr: Class that wraps all templates for a specific dataset/subset and implements all the helper
  functions necessary to read/write to the yaml file
class_docstr_tok: ["Class","that","wraps","all","templates","for","a","specific","dataset\/subset","and","implements","all","the","helper","functions","necessary","to","read\/write","to","the","yaml","file"]
docstr: Re-compute the name_to_id_mapping to ensure it is in sync with self.templates
docstr_tok: ["Re-compute","the","name_to_id_mapping","to","ensure","it","is","in","sync","with","self.templates"]
code: def sync_mapping(self) -> None:
      """
      Re-compute the name_to_id_mapping to ensure it is in sync with self.templates
      """
      self.name_to_id_mapping = {
          template.name: template.id
          for template in self.templates.values()
      }
  
imports: import logging
  import os
  import random
  import re
  import uuid
  from collections import Counter, defaultdict
  from shutil import rmtree
  from typing import Dict, List, Optional, Tuple
  import pandas
  import pkg_resources
  import yaml
  from jinja2 import BaseLoader, Environment, meta
  from ..constants import AUTOMM
label_desc: Use image node_id 2 for calling the DatasetTemplates obj's underlying member method code with example usage: obj.sync_mapping() without return types