def get_pointer_parent(pointer):
 parent_refs = pointer.node__parent
 assert (len(parent_refs) == 1), 'Pointer must have exactly one parent.'
 return parent_refs[0]

def get_pointer_parent ( pointer ) : parent_refs = pointer . node__parent assert ( len ( parent_refs ) == 1 ) , 'Pointer must have exactly one parent.' return parent_refs [ 0 ]
given a pointer object .