code: def version():
      
      try:
          OPENJP2.opj_version.restype = ctypes.c_char_p
      except:
          return "0.0.0"
  
      v = OPENJP2.opj_version()
      return v.decode('utf-8') if sys.hexversion >= 0x03000000 else v
docs: Wrapper for opj_version library routine.