Show_batch function isn't working on local machine

show_batch
This show_batch function isn’t working properly on my local machine. It’s like the function never compile.