class_docstr: Contains logic for updating one node with the translated content.
class_docstr_tok: ["Contains","logic","for","updating","one","node","with","the","translated","content","."]
docstr: Warn about mismatches between references in original and translated content.
docstr_tok: ["Warn","about","mismatches","between","references","in","original","and","translated","content","."]
code: def compare_references(
      self,
      old_refs: Sequence[nodes.Element],
      new_refs: Sequence[nodes.Element],
      warning_msg: str,
  ) -> None:
      """Warn about mismatches between references in original and translated content."""
      # FIXME: could use a smarter strategy than len(old_refs) == len(new_refs)
      if not self.noqa and len(old_refs) != len(new_refs):
          old_ref_rawsources = [ref.rawsource for ref in old_refs]
          new_ref_rawsources = [ref.rawsource for ref in new_refs]
          logger.warning(
              warning_msg.format(
                  old_ref_rawsources, new_ref_rawsources
              ),
              location=self.node,
              type="i18n",
              subtype="inconsistent_references",
          )
  
imports: from __future__ import annotations
  import contextlib
  from os import path
  from re import DOTALL, match
  from textwrap import indent
  from typing import TYPE_CHECKING, Any, TypeVar
  from docutils import nodes
  from docutils.io import StringInput
  from sphinx import addnodes
  from sphinx.domains.std import make_glossary_term, split_term_classifiers
  from sphinx.errors import ConfigError
  from sphinx.locale import __
  from sphinx.locale import init
  from sphinx.transforms import SphinxTransform
  from sphinx.util import get_filetype, logging
  from sphinx.util.i18n import docname_to_domain
  from sphinx.util.index_entries import split_index_msg
  from sphinx.util.nodes import IMAGE_TYPE_NODES, LITERAL_TYPE_NODES, NodeMatcher, extract_messages, traverse_translatable_index
label_desc: Use image node_id 2 for calling the _NodeUpdater obj's underlying member method code with example usage: obj.compare_references(old_refs, new_refs, warning_msg) without return types