code: def is_existent_role(self, domain_name: str, role_name: str) -> bool:
      try:
          domain = self.env.get_domain(domain_name)
          return role_name in domain.roles
      except ExtensionError:
          return False
  
imports: from __future__ import annotations
  import concurrent.futures
  import functools
  import posixpath
  import re
  import sys
  import time
  from os import path
  from typing import TYPE_CHECKING, cast
  from urllib.parse import urlsplit, urlunsplit
  from docutils import nodes
  from docutils.utils import relative_path
  import sphinx
  from sphinx.addnodes import pending_xref
  from sphinx.builders.html import INVENTORY_FILENAME
  from sphinx.errors import ExtensionError
  from sphinx.locale import _, __
  from sphinx.transforms.post_transforms import ReferencesResolver
  from sphinx.util import logging, requests
  from sphinx.util.docutils import CustomReSTDispatcher, SphinxRole
  from sphinx.util.inventory import InventoryFile
label_desc: Use image node_id 5 for calling the IntersphinxRole obj's underlying member method code with example usage: obj.is_existent_role(domain_name, role_name) and returns: unknown, False