code: def try_import(objname: str) -> Any:
      """Import a object or module using *name* and *currentmodule*.
      *name* should be a relative name from *currentmodule* or
      a fully-qualified name.
  
      Returns imported object or module.  If failed, returns None value.
      """
      try:
          return import_module(objname)
      except TypeError:
          # Relative import
          return None
      except ImportError:
          matched = module_sig_re.match(objname)
  
          if not matched:
              return None
  
          modname, attrname = matched.groups()
  
          if modname is None:
              return None
          try:
              module = import_module(modname)
              return getattr(module, attrname, None)
          except ImportError:
              return None
  
imports: from __future__ import annotations
  import builtins
  import hashlib
  import inspect
  import re
  from collections.abc import Iterable, Sequence
  from importlib import import_module
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  import sphinx
  from sphinx import addnodes
  from sphinx.ext.graphviz import figure_wrapper, graphviz, render_dot_html, render_dot_latex, render_dot_texinfo
  from sphinx.util.docutils import SphinxDirective
label_desc: Use image node_id 1 for calling a global function with example usage: try_import(objname) and returns: import_module, None, None, None, getattr, None