code: def check_status(status):
      
      if status:
          msg = lib.DftiErrorMessage(status)
          msg = ctypes.c_char_p(msg).value
          raise RuntimeError(msg)
docs: Check the status of a mkl functions and raise a python exeption if
      there is an error.