def parent_child(domain):
    return map_reduce(lambda (k, v): [(p, k) for p in v],
                      data=dict(location_hierarchy_config(domain)).iteritems())
Returns a dict mapping from a location type to its possible
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/locations/util.py/parent_child