code: def set_info_handler(codec, handler, data=None):
      
      OPENJP2.opj_set_info_handler.argtypes = [CODEC_TYPE,
                                               ctypes.c_void_p,
                                               ctypes.c_void_p]
      OPENJP2.opj_set_info_handler.restype = check_error
      OPENJP2.opj_set_info_handler(codec, handler, data)
docs: Wraps openjp2 library function opj_set_info_handler.
  
      Set the info handler use by openjpeg.
  
      Parameters
      ----------
      codec : CODEC_TYPE
          Codec initialized by create_compress function.
      handler : python function
          The callback function to be used.
      user_data : anything
          User/client data.
  
      Raises
      ------
      RuntimeError
          If the OpenJPEG library routine opj_set_info_handler fails.