def _import_config(config_file):
<EOL>jocker_lgr.debug('<STR_LIT>'.format(config_file))<EOL>try:<EOL><INDENT>jocker_lgr.debug('<STR_LIT>')<EOL>with open(config_file, '<STR_LIT:r>') as c:<EOL><INDENT>return yaml.safe_load(c.read())<EOL><DEDENT><DEDENT>except IOError as ex:<EOL><INDENT>jocker_lgr.error(str(ex))<EOL>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>except yaml.parser.ParserError as ex:<EOL><INDENT>jocker_lgr.error('<STR_LIT>'.format(ex))<EOL>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>
returns a configuration object

    :param string config_file: path to config file