def create_access_request(pid_value, users, confirmed):
datastore = current_app.extensions['<STR_LIT>'].datastore<EOL>receiver = datastore.get_user(users['<STR_LIT>']['<STR_LIT:id>'])<EOL>sender = datastore.get_user(users['<STR_LIT>']['<STR_LIT:id>'])<EOL>return AccessRequest.create(<EOL>recid=pid_value,<EOL>receiver=receiver,<EOL>sender_full_name="<STR_LIT>",<EOL>sender_email="<STR_LIT>",<EOL>sender=sender if confirmed else None,<EOL>justification="<STR_LIT>",<EOL>)<EOL>
Access Request.