code: def set_event_mgr(dinfo, event_mgr, context=None):
      
      argtypes = [ctypes.POINTER(CommonStructType),
                  ctypes.POINTER(EventMgrType),
                  ctypes.c_void_p]
      OPENJPEG.opj_set_event_mgr.argtypes = argtypes
      OPENJPEG.opj_set_event_mgr(ctypes.cast(dinfo,
                                             ctypes.POINTER(CommonStructType)),
                                 event_mgr, context)
docs: Wrapper for openjpeg library function opj_set_event_mgr.