<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getConfig(self, type='online', format='elegant'):
 """ only dump configuration part, dict :param type: comm, simu, ctrl, misc, all, online (default) :param format: elegant/mad, elegant by default """

        return list(list(self.dumpConfigDict[type](format).values())[0].values())[0]