import copy


def wrap_grant(grant_details):
    """Utility function wrapping grant details for return from a POST."""
    details_list = [copy.deepcopy(grant_details)] if grant_details else []
    return {'results': details_list}