code: def give_consent():
      
      if not ('hitId' in request.args and 'assignmentId' in request.args and
              'workerId' in request.args):
          raise ExperimentError('hit_assign_worker_id_not_set_in_consent')
      hit_id = request.args['hitId']
      assignment_id = request.args['assignmentId']
      worker_id = request.args['workerId']
      mode = request.args['mode']
      with open('templates/consent.html', 'r') as temp_file:
          consent_string = temp_file.read()
      consent_string = insert_mode(consent_string, mode)
      return render_template_string(
          consent_string,
          hitid=hit_id,
          assignmentid=assignment_id,
          workerid=worker_id
      )
docs: Serves up the consent in the popup window.