def _module_init():
    global ERROR_CODE_MAP
    ERROR_CODE_MAP = {}
    for k, v in globals().items():
        try:
            if issubclass(v, HTTPException):
                ERROR_CODE_MAP[v.code] = v
        except (TypeError, __HOLE__):
            pass
dataset/ETHPy150Open mahmoud/clastic/clastic/errors.py/_module_init