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: Delete the folder corresponding to self.folder_path
docstr_tok: ["Delete","the","folder","corresponding","to","self.folder_path"]
code: def delete_folder(self) -> None:
      """
      Delete the folder corresponding to self.folder_path
      """
      self.sync_mapping()
  
      rmtree(self.folder_path)
  
      # If it is a subset, we have to check whether to remove the dataset folder
      if self.subset_name:
          # have to check for other folders
          base_dataset_folder = os.path.join(
              TEMPLATES_FOLDER_PATH, self.dataset_name
          )
          if len(os.listdir(base_dataset_folder)) == 0:
              rmtree(base_dataset_folder)
  
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 13 for calling the DatasetTemplates obj's underlying member method code with example usage: obj.delete_folder() without return types