code: def get_tags(self):
          
          posts = self.get_posts(include_draft=True)
          result = {}
          for post in posts:
              for tag_name in set(post.tags):
                  result[tag_name] = result.setdefault(
                      tag_name, Pair(0, 0)) + Pair(1, 0 if post.is_draft else 1)
          return list(result.items())
docs: Get all tags and post count of each tag.
  
          :return: dict_item(tag_name, Pair(count_all, count_published))