code: def generate_tags(self):
          
          self.tags = dict()
          for section in self.sections():
              if self.has_option(section, 'tags'):
                  tags = self.get(section, 'tags')
                  for tag in [str(t).strip() for t in tags.split(',')]:
                      if tag not in self.tags:
                          self.tags[tag] = list()
                      self.tags[tag].append(section.split(':')[1])
docs: Generates the tags with collection with hosts