def _is_import_valid(documents):
 return (isinstance(documents, list) and all((isinstance(d, dict) for d in documents)) and all((all(((k in d) for k in ('pk', 'model', 'fields'))) for d in documents)) and all((all(((k in d['fields']) for k in ('uuid', 'owner'))) for d in documents)))

def _is_import_valid ( documents ) : return ( isinstance ( documents , list ) and all ( ( isinstance ( d , dict ) for d in documents ) ) and all ( ( all ( ( ( k in d ) for k in ( 'pk' , 'model' , 'fields' ) ) ) for d in documents ) ) and all ( ( all ( ( ( k in d [ 'fields' ] ) for k in ( 'uuid' , 'owner' ) ) ) for d in documents ) ) )
validates the json file to be imported for schema correctness .