<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dependency_resolver(dependencies):
 """ Resolves given dependencies. :param dependencies: Dependencies to resolve. :type dependencies: dict :return: Resolved dependencies. :rtype: list """


    items = dict((key, set(dependencies[key])) for key in dependencies)
    resolved_dependencies = []
    while items:
        batch = set(item for value in items.values() for item in value) - set(items.keys())
        batch.update(key for key, value in items.items() if not value)
        resolved_dependencies.append(batch)
        items = dict(((key, value - batch) for key, value in items.items() if value))
    return resolved_dependencies