def invert_dictionary(dictionary, field='name'):
    return dict([[value[field], key]
                 for key, value in dictionary.items()])
Test DELETEing a resource.
dataset/ETHPy150Open bigmlcom/python/bigml/util.py/invert_dictionary--crossover with--dataset/ETHPy150Open jeffknupp/sandman/tests/test_sandman.py/TestSandmanBasicVerbs.test_delete_resource