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: Adds a new template for the dataset
  
  :param template: template
docstr_tok: ["Adds","a","new","template","for","the","dataset",":","param","template",":","template"]
code: def add_template(self, template: "Template") -> None:
      """
      Adds a new template for the dataset
  
      :param template: template
      """
      self.templates[template.get_id()] = template
  
      self.write_to_file()
  
imports: import logging
  import os
  import random
  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
label_desc: Use image node_id 9 for calling the DatasetTemplates obj's underlying member method code with example usage: obj.add_template(template) without return types