def getSliceAttr(self, sliceInfo, attr):
        try:
            k = self.sliceAttrDict[attr] # USE ALIAS IF PROVIDED
        except __HOLE__:
            return getattr(sliceInfo, attr) # GET ATTRIBUTE AS USUAL
        try: # REMAP TO ANOTHER ATTRIBUTE NAME
            return getattr(sliceInfo, k)
        except TypeError: # TREAT AS int INDEX INTO A TUPLE
            return sliceInfo[k]
dataset/ETHPy150Open cjlee112/pygr/pygr/annotation.py/AnnotationDB.getSliceAttr