class_docstr: CIDEr scorer.
class_docstr_tok: ["CIDEr","scorer","."]
docstr: called by constructor and __iadd__ to avoid creating new instances.
docstr_tok: ["called","by","constructor","and","__iadd__","to","avoid","creating","new","instances","."]
code: def cook_append(self, test, refs):
      """called by constructor and __iadd__ to avoid creating new instances."""
  
      if refs is not None:
          self.crefs.append(cook_refs(refs))
          if test is not None:
              self.ctest.append(cook_test(test))  # N.B.: -1
          else:
              self.ctest.append(None)
  
file_path: graph4nlp/graph4nlp/pytorch/modules/evaluation/cider_tool/cider_scorer.py
imports: import copy
  import math
  import os
  import sys
  from collections import defaultdict
  import numpy
label_desc: Use image node_id 3 for calling the CiderScorer obj's underlying member method code with example usage: obj.cook_append(test, refs) without return types