def METHOD_NAME(dat, keys=None):
    """Get the times in the file, optionally at a given list of time index keys."""
    a_field = next(iter(dat.keys()))
    if keys is None:
        keys = get_keys(dat)
    times = [dat[a_field][key].attrs['Time'] for key in keys]
    return times