| 23 | |
| 24 | |
| 25 | class NodeCounter: |
| 26 | def __init__(self): |
| 27 | self.n = 0 |
| 28 | |
| 29 | def __dask_tokenize__(self): |
| 30 | return type(self), self.n |
| 31 | |
| 32 | def f(self, x): |
| 33 | time.sleep(random.random() / 100) |
| 34 | self.n += 1 |
| 35 | return x |
| 36 | |
| 37 | |
| 38 | def assert_no_common_keys(a, b, omit=None, *, layers: bool) -> None: |
no outgoing calls