<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_all(self):
 """List all Permission. :return: Dictionary with the following structure: :: :raise DataBaseError: Networkapi failed to access the database. :raise XMLError: Networkapi failed to generate the XML response. """

        code, map = self.submit(None, 'GET', 'perms/all/')

        key = 'perms'
        return get_list_map(self.response(code, map, [key]), key)