code: def configuration_to_dict(handlers):
      """Returns configuration data gathered by given handlers as a dict.
  
      :param list[ConfigHandler] handlers: Handlers list,
          usually from parse_configuration()
  
      :rtype: dict
      """
      config_dict = defaultdict(dict)
  
      for handler in handlers:
          for option in handler.set_options:
              value = _get_option(handler.target_obj, option)
              config_dict[handler.section_prefix][option] = value
  
      return config_dict
  
imports: from __future__ import absolute_import, unicode_literals
  import io
  import os
  import sys
  import warnings
  import functools
  from collections import defaultdict
  from functools import partial
  from functools import wraps
  from importlib import import_module
  from distutils.errors import DistutilsOptionError, DistutilsFileError
  from setuptools.extern.packaging.version import LegacyVersion, parse
  from setuptools.extern.packaging.specifiers import SpecifierSet
  from setuptools.extern.six import string_types, PY3
label_desc: Use image node_id 3 for calling a global function with example usage: configuration_to_dict(handlers) and returns: config_dict