Create a pseudocode from this sentence: "Turn on the lights of the garage when NAME_1 leaves home" using the following functions:
#this function returns true if the person is detected in the provided time 
function search_id (string Name, Date) 
#this function is used to turn on or off lights given a certain place as a parameter
function action_lights (bool turn, string place)
 Provide response in all capital letters, no lowercase letters allowed.
user