def METHOD_NAME(dat, attrs, filename):
    """Accepts a dictionary of ATS data and writes it to HDF5 file."""
    logging.info('Writing ATS file: {}'.format(filename))
    with h5py.File(filename, 'w') as fid:
        for key, val in dat.items():
            fid.create_dataset(key, data=val)
        for key, val in attrs.items():
            fid.attrs[key] = val
    return