class_docstr: Main evaluator class.
class_docstr_tok: ["Main","evaluator","class","."]
docstr: Sets the `self.annotations` and `self.annotated_img_ids`.
  
  This method should only be used when trying to compute the metrics across
  hosts, where one host captures the data from everyone in an effort to
  produce the entire dataset metrics.
  Args:
    annotations: the new `annotations`
    ids: the new `annotated_img_ids`
docstr_tok: ["Sets","the","`","self.annotations","`","and","`","self.annotated_img_ids","`",".","This","method","should","only","be","used","when","trying","to","compute","the","metrics","across","hosts",",","where","one","host","captures","the","data","from","everyone","in","an","effort","to","produce","the","entire","dataset","metrics",".","Args",":","annotations",":","the","new","`","annotations","`","ids",":","the","new","`","annotated_img_ids","`"]
code: def set_annotations_and_ids(self, annotations, ids):
      """Sets the `self.annotations` and `self.annotated_img_ids`.
  
      This method should only be used when trying to compute the metrics across
      hosts, where one host captures the data from everyone in an effort to
      produce the entire dataset metrics.
      Args:
        annotations: the new `annotations`
        ids: the new `annotated_img_ids`
      """
      self.annotations = annotations
      self.annotated_img_ids = ids
  
imports: import collections
  import contextlib
  import functools
  import io
  import json
  import os
  import tempfile
  from typing import Any, Dict, List, Optional, Set
  import zipfile
  from absl import logging
  import jax
  import numpy
  import PIL
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from tensorflow.io import gfile
label_desc: Use image node_id 7 for calling the DetectionEvaluator obj's underlying member method code with example usage: obj.set_annotations_and_ids(annotations, ids) without return types