def METHOD_NAME(self, container):
    ids = {}
    for member in get_container_members(container):
        id = get_id(member)
        if not id:
            continue
        ids[id] = member
    return ids