class_docstr: This helper class wraps the DatasetTemplates class
  - Initialized the DatasetTemplates for all existing template folder
  - Give access to each DatasetTemplates
  - Provides aggregated counts over all DatasetTemplates
class_docstr_tok: ["This","helper","class","wraps","the","DatasetTemplates","class","-","Initialized","the","DatasetTemplates","for","all","existing","template","folder","-","Give","access","to","each","DatasetTemplates","-","Provides","aggregated","counts","over","all","DatasetTemplates"]
docstr: Return the DatasetTemplates object corresponding to the dataset name
  
  :param dataset_name: name of the dataset to get
  :param subset_name: name of the subset
docstr_tok: ["Return","the","DatasetTemplates","object","corresponding","to","the","dataset","name",":","param","dataset_name",":","name","of","the","dataset","to","get",":","param","subset_name",":","name","of","the","subset"]
code: def get_dataset(
      self, dataset_name: str, subset_name: Optional[str] = None
  ) -> "DatasetTemplates":
      """
      Return the DatasetTemplates object corresponding to the dataset name
  
      :param dataset_name: name of the dataset to get
      :param subset_name: name of the subset
      """
      # if the dataset does not exist, we add it
      if dataset_name not in self.keys:
          self.datasets_templates[
              (dataset_name, subset_name)
          ] = DatasetTemplates(dataset_name, subset_name)
  
      return self.datasets_templates[(dataset_name, subset_name)]
  
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 7 for calling the TemplateCollection obj's underlying member method code with example usage: obj.get_dataset(dataset_name, subset_name) and returns: self