<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_instance_definition(man, insts):
 """ Returns a function that returns the dependencies of an instance definition by its name, where insts is a dictionary of instance definitions from a mirteFile """

    return lambda x: [a[1] for a in six.iteritems(insts[x])
                      if a[0] in [dn for dn, d in (
                          six.iteritems(man.modules[insts[x]['module']].deps)
                          if 'module' in insts[x] else [])]]