docs: def format_v3_score_response(response):
      """
      {
          "<context_name>": {
              "scores": {
                  "<rev_id>": {
                      "<model_name>": {
                          "score": <score>,
                          "features": <features>
                      },
                      "<model_name>": {
                          "score": <score>,
                          "features": <features>
                      }
                  },
                  "<rev_id>": {
                      "<model_name>": {
                          "score": <score>,
                          "features": <features>
                      },
                      "<model_name>": {
                          "score": <score>,
                          "features": <features>
                      }
                  }
              },
              "models": {
                  "<model_name>": <model_info>,
                  "<model_name>": <model_info>
              }
          }
      }
      """
      context_doc = defaultdict(lambda: defaultdict(dict))
      if len(response.scores) > 0 or len(response.errors) > 0:
          for rev_id, rev_scores in response.scores.items():
              for model_name, score in rev_scores.items():
                  context_doc['scores'][rev_id][model_name] = \
                      {'score': score}
  
          for rev_id, rev_errors in response.errors.items():
              for model_name, error in rev_errors.items():
                  context_doc['scores'][rev_id][model_name] = \
                      util.format_error(error)
  
          for rev_id, rev_features in response.features.items():
              for model_name, features in rev_features.items():
                  context_doc['scores'][rev_id][model_name]['features'] = \
                      features
  
      if len(response.model_info) > 0:
          context_doc['models'] = {
              model_name: info_doc
              for model_name, info_doc in response.model_info.items()}
  
      return util.jsonify({response.context.name: context_doc})