def niDigital_UnlockSession(self, vi, caller_has_lock):
    with self._func_lock:
        if (self.niDigital_UnlockSession_cfunc is None):
            self.niDigital_UnlockSession_cfunc = self._get_library_function('niDigital_UnlockSession')
            self.niDigital_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)]
            self.niDigital_UnlockSession_cfunc.restype = ViStatus
    return self.niDigital_UnlockSession_cfunc(vi, caller_has_lock)
def niDigital_UnlockSession(self, vi, caller_has_lock):
    with self._func_lock:
        if (self.niDigital_UnlockSession_cfunc is None):
            self.niDigital_UnlockSession_cfunc = self._get_library_function('niDigital_UnlockSession')
            self.niDigital_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)]
            self.niDigital_UnlockSession_cfunc.restype = ViStatus
    return self.niDigital_UnlockSession_cfunc(vi, caller_has_lock)