class_docstr: LVIS annotation helper class.
  
  The format of the annations is explained on
  https://www.lvisdataset.org/dataset.
class_docstr_tok: ["LVIS","annotation","helper","class",".","The","format","of","the","annations","is","explained","on","https",":","\/\/www.lvisdataset.org\/dataset","."]
docstr: Return all annotations associated with the image id string.
docstr_tok: ["Return","all","annotations","associated","with","the","image","id","string","."]
code: def get_annotations(self, img_id):
      """Return all annotations associated with the image id string."""
      # Some images don't have any annotations. Return empty list instead.
      return self._img_id2annotations.get(img_id, [])
  
imports: from __future__ import annotations
  import collections
  import json
  import pathlib
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the LvisAnnotation obj's underlying member method code with example usage: obj.get_annotations(img_id) and returns: self