code: def xconfig_line_to_object(config_line, prev_layers=None):
      try:
          x = xutils.parse_config_line(config_line)
          if x is None:
              return None
          (first_token, key_to_value) = x
          if not first_token in config_to_layer:
              raise RuntimeError(
                  "No such layer type '{0}'".format(first_token)
              )
          return config_to_layer[first_token](
              first_token, key_to_value, prev_layers
          )
      except Exception:
          logging.error(
              "***Exception caught while parsing the following xconfig line:\n"
              "*** {0}".format(config_line)
          )
          raise
  
file_path: espnet/egs2/lt_speech_commands/asr1/steps/libs/nnet3/xconfig/parser.py
imports: from __future__ import print_function
  import logging
  import sys
  import libs.nnet3.xconfig.layers
  import libs.nnet3.xconfig.utils
  import libs.common
label_desc: Use image node_id 1 for calling a global function with example usage: xconfig_line_to_object(config_line, prev_layers) and returns: config_to_layer, None