code: def update_beliefs():
      
      if request.json is None:
          abort(Response('Missing application/json header.', 415))
      # Get input parameters
      corpus_id = request.json.get('corpus_id')
      try:
          belief_dict = curator.update_beliefs(corpus_id)
      except InvalidCorpusError:
          abort(Response('The corpus_id "%s" is unknown.' % corpus_id, 400))
          return
      return jsonify(belief_dict)
docs: Return updated beliefs based on current probability model.