What is inference in AI with example