code: def find_pending_xref_condition(
      node: addnodes.pending_xref,
      condition: str,
  ) -> Element | None:
      """Pick matched pending_xref_condition node up from the pending_xref."""
      for subnode in node:
          if (
              isinstance(subnode, addnodes.pending_xref_condition)
              and subnode.get("condition") == condition
          ):
              return subnode
      return None
  
imports: from __future__ import annotations
  import contextlib
  import re
  import unicodedata
  from typing import TYPE_CHECKING, Any, Callable
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.locale import __
  from sphinx.util import logging
label_desc: Use image node_id 18 for calling a global function with example usage: find_pending_xref_condition(node, condition) and returns: None, subnode