def dunder_partition(key):
    parts = key.rsplit('__', 1)
    return tuple(parts) if len(parts) > 1 else (parts[0], None)
Splits a dunderkey into 2 parts
dataset/ETHPy150Open naiquevin/lookupy/lookupy/dunderkey.py/dunder_partition