lstm test function 0 handler