def getem(arr, chunks, shape=None):
    chunks = normalize_chunks(chunks, shape)

    keys = list(product([arr], *[range(len(bds)) for bds in chunks]))

    values = [(getarray, arr, x) for x in slices_from_chunks(chunks)]

    return dict(zip(keys, values))
Returns the metric with the given name and slug, creating
dataset/ETHPy150Open dask/dask/dask/array/core.py/getem--crossover with--dataset/ETHPy150Open frankwiles/django-app-metrics/app_metrics/utils.py/get_or_create_metric