A Comparative Study Of Theory Of Mind Mechanisms And Tasks Between Human And Ai