def same_keys(a, b):

    def key(k):
        if isinstance(k, str):
            return (k, (- 1), (- 1), (- 1))
        else:
            return k
    return (sorted(a.dask, key=key) == sorted(b.dask, key=key))
def same_keys(a, b):

    def key(k):
        if isinstance(k, str):
            return (k, (- 1), (- 1), (- 1))
        else:
            return k
    return (sorted(a.dask, key=key) == sorted(b.dask, key=key))