code: def _create_tags(ctx):
      "create all classes and put them in ctx"
  
      for (tag, info) in _TAGS.items():
          class_name = tag.title()
          quote_, compact, self_closing, docs = info
  
          def __init__(self, *childs, **attrs):
              TagBase.__init__(self, childs, attrs)
  
          cls = type(class_name, (TagBase,), {
              "__doc__": docs,
              "__init__": __init__
          })
  
          cls.QUOTE = quote_
          cls.COMPACT = compact
          cls.SELF_CLOSING = self_closing
  
          ctx[class_name] = clf _create_tags(ctx):
      "create all classes and put them in ctx"
  
      for (tag, info) in _TAGS.items():
          class_name = tag.title()
          quote_, compact, self_closing, docs = info
  
          def __init__(self, *childs, **attrs):
              TagBase.__init__(self, childs, attrs)
  
          cls = type(class_name, (TagBase,), {
              "__doc__": docs,
              "__init__": __init__
          })
  
          cls.QUOTE = quote_
          cls.COMPACT = compact
          cls.SELF_CLOSING = self_closing
  
          ctx[class_name] = cls
docs: create all classes and put them in ctx