'Get the IDs from the parents from a given project.
The project IDs are returned as a structured dictionary traversing up
the hierarchy to the top level project. For example, considering the
following project hierarchy::
A
+-B-+
C   D
If we query for project C parents, the expected return is the following
dictionary::
\'parents\': {
B[\'id\']: {
A[\'id\']: None'

def get_project_parents_as_ids(self, project):

    parents_list = self.list_project_parents(project['id'])
    parents_as_ids = self._build_parents_as_ids_dict(project, {proj['id']: proj for proj in parents_list})
    return parents_as_ids
