code: def check_agent_response(teachable_agent, user, correct_answer):
      """Checks whether the agent's response contains the correct answer, and returns the number of errors (1 or 0)."""
      agent_response = user.last_message(teachable_agent)["content"]
      if correct_answer not in agent_response:
          print(
              colored(
                  f"\nTEST FAILED:  EXPECTED ANSWER {correct_answer} NOT FOUND IN AGENT RESPONSE",
                  "light_red",
              )
          )
          return 1
      else:
          print(
              colored(
                  f"\nTEST PASSED:  EXPECTED ANSWER {correct_answer} FOUND IN AGENT RESPONSE",
                  "light_cyan",
              )
          )
          return 0
  
file_path: autogen/test/agentchat/contrib/test_teachable_agent.py
imports: import pytest
  import os
  import sys
  from autogen import ConversableAgent, config_list_from_json
  from conftest import skip_openai
  from test_assistant_agent import OAI_CONFIG_LIST, KEY_LOC
label_desc: Use image node_id 2 for calling a global function with example usage: check_agent_response(teachable_agent, user, correct_answer) and returns: int, int