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: Create a formatted dictionary for the class attributes
docstr_tok: ["Create","a","formatted","dictionary","for","the","class","attributes"]
code: def format_for_dump(self) -> Dict:
      """
      Create a formatted dictionary for the class attributes
      """
      formatted_dict = {
          self.DATASET_KEY: self.dataset_name,
          self.TEMPLATES_KEY: self.templates,
      }
      if self.subset_name:
          formatted_dict[self.SUBSET_KEY] = self.subset_name
      return formatted_dict
  
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 DatasetTemplates obj's underlying member method code with example usage: obj.format_for_dump() and returns: formatted_dict