code: def text_to_config_dict(text):
      if not isinstance(text, six.string_types):
          raise ValueError("Configuration parsing only supports string")
      # noinspection PyBroadException
      try:
          return hocon_unquote_key(ConfigFactory.parse_string(text))
      except pyparsing.ParseBaseException as ex:
          pos = "at char {}, line:{}, col:{}".format(
              ex.loc, ex.lineno, ex.column
          )
          six.raise_from(
              ValueError(
                  "Could not parse configuration text ({}):\n{}".format(
                      pos, text
                  )
              ),
              None,
          )
      except Exception:
          six.raise_from(
              ValueError(
                  "Could not parse configuration text:\n{}".format(text)
              ),
              None,
          )
  
file_path: clearml/clearml/utilities/config.py
imports: from __future__ import division
  import json
  import six
  import pyparsing
  from .dicts import hocon_quote_key, hocon_unquote_key
  from .pyhocon import ConfigFactory, HOCONConverter
  from ..storage.util import parse_size
label_desc: Use image node_id 5 for calling a global function with example usage: text_to_config_dict(text) and returns: hocon_unquote_key