<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def depsOf_of_mirteFile_module_definition(defs):
 """ Returns a function that returns the dependencies of a module definition by its name, where defs is a dictionary of module definitions from a mirteFile """

    return lambda x: (list(filter(lambda z: z is not None and z in defs,
                             map(lambda y: y[1].get('type'),
                                 six.iteritems(defs[x]['settings'])
                                 if 'settings' in defs[x] else [])))) + \
        (list(defs[x]['inherits']) if 'inherits' in defs[x] else [])