def gen_to_dict(gen):
    return lambda *args: dict(gen(*args))
Convert timestamp to datetime, assuming UTC.
dataset/ETHPy150Open Microsoft/ivy/src/ivy/ivy_utils.py/gen_to_dict--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/_helpers.py/_datetime_from_microseconds