code: def _default_warning_handler(library_msg, _):
      
      library_msg = library_msg.decode('utf-8').rstrip()
      msg = "OpenJPEG library warning:  {0}".format(library_msg)
      warnings.warn(msg, UserWarning)
docs: Default warning handler callback.