def pairwise(iterable):
    a,b = itertools.tee(iterable)
    try:
        b.next()
    except StopIteration:
        pass
    return itertools.izip(a,b)
Walks the owner hierarchy and returns the next parent that is a
dataset/ETHPy150Open cloudmatrix/esky/esky/util.py/pairwise--crossover with--dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/fhirabstractbase.py/FHIRAbstractBase.owningResource