def __getitem__(self, k):
        'get annotation object by its ID'
        try: # GET FROM OUR CACHE
            return self._weakValueDict[k]
        except __HOLE__:
            pass
        return self.sliceAnnotation(k, self.sliceDB[k])
dataset/ETHPy150Open cjlee112/pygr/pygr/annotation.py/AnnotationDB.__getitem__