code: def test_context():
      agent = ConversableAgent(
          "a0",
          max_consecutive_auto_reply=0,
          llm_config=False,
          human_input_mode="NEVER",
      )
      agent1 = ConversableAgent(
          "a1",
          max_consecutive_auto_reply=0,
          llm_config=False,
          human_input_mode="NEVER",
      )
      agent1.send(
          {
              "content": "hello {name}",
              "context": {
                  "name": "there",
              },
          },
          agent,
      )
      # expect hello {name} to be printed
      agent1.send(
          {
              "content": lambda context: f"hello {context['name']}",
              "context": {
                  "name": "there",
              },
          },
          agent,
      )
      # expect hello there to be printed
      agent.llm_config = {"allow_format_str_template": True}
      agent1.send(
          {
              "content": "hello {name}",
              "context": {
                  "name": "there",
              },
          },
          agent,
      )
  
imports: import asyncio
  import copy
  import sys
  import time
  from typing import Any, Callable, Dict, Literal
  import unittest
  import inspect
  import pytest
  from unittest.mock import patch
  from pydantic import BaseModel, Field
  from typing_extensions import Annotated
  import autogen
  from autogen.agentchat import ConversableAgent, UserProxyAgent
  from test_assistant_agent import KEY_LOC, OAI_CONFIG_LIST
  from conftest import skip_openai
label_desc: Use image node_id 4 for calling a global function with example usage: test_context() without return types