code: def init_matplotlib():
      """
      Check feasibility of matplotlib initialization.
      """
      global HAVE_MATPLOTLIB
  
      try:
          import matplotlib
  
          matplotlib.use("Agg")
          HAVE_MATPLOTLIB = True
      except ImportError:
          HAVE_MATPLOTLIB = False
  
imports: import copy
  import doctest
  import inspect
  import io
  import os
  import re
  import shutil
  import sys
  import tempfile
  import warnings
  import docutils.core
  from argparse import ArgumentParser
  from contextlib import contextmanager, redirect_stderr
  from doctest import NORMALIZE_WHITESPACE, ELLIPSIS, IGNORE_EXCEPTION_DETAIL
  from docutils.parsers.rst import directives
  import sphinx
  import numpy
  from numpydoc.docscrape_sphinx import get_doc_object
  from sphinx.directives.other import SeeAlso, Only
label_desc: Use image node_id 15 for calling a global function with example usage: init_matplotlib() without return types