input: Write a function to handle WebSocket messages using asyncio and websockets.
  assert send_and_receive("Hello") == "Hello"
  assert send_and_receive("Test Message") == "Test Message"
  assert send_and_receive("WebSocket") == "WebSocket"
output: import asyncio
  import websockets
  
  async def send_and_receive(message):
      async with websockets.connect("ws://localhost:8765") as websocket:
          await websocket.send(message)
          response = await websocket.recv()
          return response
  
  def run_sync_send_and_receive(message):
      return asyncio.run(send_and_receive(message))
  ```
  
  To call the function `send_and_receive` synchronously, you can use `run_sync_send_and_receive`. Here's how you would use it in your assertions:
  
  ```python
  assert run_sync_send_and_receive("Hello") == "Hello"
  assert run_sync_send_and_receive("Test Message") == "Test Message"
  assert run_sync_send_and_receive("WebSocket") == "WebSocket"