def _lookup_global(self, gv):
        """
        Look up the registered type for global value *gv*.
        """
        try:
            gv = weakref.ref(gv)
        except __HOLE__:
            pass
        return self._globals[gv]
dataset/ETHPy150Open numba/numba/numba/typing/context.py/BaseContext._lookup_global