<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def updateConfig(self, eleobj, config, type='simu'):
 """ write new configuration to element :param eleobj: define element object :param config: new configuration for element, string or dict :param type: 'simu' by default, could be online, misc, comm, ctrl """

        eleobj.setConf(config, type=type)