def _document(document, claimant):
    '\n    Return document meta and document URI data from the given document dict.\n\n    Transforms the "document" dict that the client posts into a convenient\n    format for creating DocumentURI and DocumentMeta objects later.\n\n    '
    document = (document or {})
    document_uri_dicts = document_claims.document_uris_from_data(copy.deepcopy(document), claimant=claimant)
    document_meta_dicts = document_claims.document_metas_from_data(copy.deepcopy(document), claimant=claimant)
    return {'document_uri_dicts': document_uri_dicts, 'document_meta_dicts': document_meta_dicts}
Return document meta and document URI data from the given document dict.

Transforms the "document" dict that the client posts into a convenient
format for creating DocumentURI and DocumentMeta objects later.
def _document(document, claimant):
    '\n    Return document meta and document URI data from the given document dict.\n\n    Transforms the "document" dict that the client posts into a convenient\n    format for creating DocumentURI and DocumentMeta objects later.\n\n    '
    document = (document or {})
    document_uri_dicts = document_claims.document_uris_from_data(copy.deepcopy(document), claimant=claimant)
    document_meta_dicts = document_claims.document_metas_from_data(copy.deepcopy(document), claimant=claimant)
    return {'document_uri_dicts': document_uri_dicts, 'document_meta_dicts': document_meta_dicts}