code: def cook_test(test, n=4):
      """Takes a test sentence and returns an object that
      encapsulates everything that BLEU needs to know about it.
      :param test: list of string : hypothesis sentence for some image
      :param n: int : number of ngrams for which (ngram) representation is calculated
      :return: result (dict)
      """
      return precook(test, n, True)
  
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 a global function with example usage: cook_test(test, n) and returns: precook