code: def resolve_pendings(self, app):
      env = app.builder.env
  
      updates = defaultdict(dict)
      for env_docname in self.entities.keys():
          for name, entity in self.entities[env_docname].items():
              docname = entity["docname"]
              node = entity["content"]
  
              for node in node.traverse(sphinx.addnodes.pending_xref):
                  contnode = cast(nodes.TextElement, node[0].deepcopy())
                  newnode = None
  
                  typ = node["reftype"]
                  target = node["reftarget"]
                  refdoc = node.get("refdoc", docname)
                  domain = None
  
                  try:
                      if "refdomain" in node and node["refdomain"]:
                          # let the domain try to resolve the reference
                          try:
                              domain = env.domains[node["refdomain"]]
                          except KeyError as exc:
                              raise NoUri(target, typ) from exc
                          newnode = domain.resolve_xref(
                              env,
                              refdoc,
                              app.builder,
                              typ,
                              target,
                              node,
                              contnode,
                          )
                  except NoUri:
                      newnode = contnode
  
                  updates[env_docname][name] = {
                      "docname": docname,
                      "content": newnode or contnode,
                  }
  
      update(self.entities, updates)
  
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 11 for calling the AllEntities obj's underlying member method code with example usage: obj.resolve_pendings(app) without return types