Created the teal_processes:get_state/1 function.