<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nvrtcGetProgramLog(self, prog):
 """ Returns the log for the NVRTC program object. Only useful after calls to nvrtcCompileProgram or nvrtcVerifyProgram. """

        size = c_size_t()
        code = self._lib.nvrtcGetProgramLogSize(prog, byref(size))
        self._throw_on_error(code)

        buf = create_string_buffer(size.value)
        code = self._lib.nvrtcGetProgramLog(prog, buf)
        self._throw_on_error(code)

        return buf.value.decode('utf-8')