code: def __init__(self):
      self.entities = defaultdict(dict)
  
imports: from collections import defaultdict, abc
  from typing import cast
  from docutils import nodes
  from docutils.parsers.rst import Directive
  import sphinx
  from sphinx.locale import _
  from sphinx.util.docutils import SphinxDirective
  from sphinx.errors import ExtensionError
  from conf import languages
label_desc: Use image node_id 1 to create a new AllEntities object  with example: obj = AllEntities()