code: def get_argument_endtime(self):
      
      try:
        endtime = self.get_argument(constants.PARAM_ENDTIME)
        return endtime
      except tornado.web.MissingArgumentError as e:
        raise Exception(e.log_message)
docs: Helper function to get endtime argument.
      Raises exception if argument is missing.
      Returns the endtime argument.