def parse_relationship_path(relationship_path):
    relationship = relationship_path._relationships_with_direction[0][1]
    return {'parent_entity_id': relationship.parent_entity.id, 'parent_variable_id': relationship.parent_variable.id, 'child_entity_id': relationship.child_entity.id, 'child_variable_id': relationship.child_variable.id}
def parse_relationship_path(relationship_path):
    relationship = relationship_path._relationships_with_direction[0][1]
    return {'parent_entity_id': relationship.parent_entity.id, 'parent_variable_id': relationship.parent_variable.id, 'child_entity_id': relationship.child_entity.id, 'child_variable_id': relationship.child_variable.id}