class_docstr: COCOEvalCap code is adopted from https://github.com/tylin/coco-caption
class_docstr_tok: ["COCOEvalCap","code","is","adopted","from","https",":","\/\/github.com\/tylin\/coco-caption"]
code: def set_img_to_eval_imgs(self, scores, img_ids, method):
      for img_id, score in zip(img_ids, scores):
          if img_id not in self.img_to_eval:
              self.img_to_eval[img_id] = dict()
              self.img_to_eval[img_id]["image_id"] = img_id
          self.img_to_eval[img_id][method] = score
  
file_path: mmf/tools/scripts/coco/coco_caption_eval.py
imports: import argparse
  import json
  from pycocoevalcap.bleu.bleu import Bleu
  from pycocoevalcap.cider.cider import Cider
  from pycocoevalcap.meteor.meteor import Meteor
  from pycocoevalcap.rouge.rouge import Rouge
  from pycocoevalcap.spice.spice import Spice
  from pycocoevalcap.tokenizer.ptbtokenizer import PTBTokenizer
label_desc: Use image node_id 4 for calling the COCOEvalCap obj's underlying member method code with example usage: obj.set_img_to_eval_imgs(scores, img_ids, method) without return types