code: def _run(ws, id):
      """
      Takes user input and sends it to a websocket.
  
      :param ws: websocket.WebSocketApp
      """
      global RUNNING
      while True:
          x = input("\033[44m Me: ")
          print("\033[0m", end="")
          data = {}
          data["id"] = id
          data["text"] = x
          if x == "[DONE]":
              RUNNING = False
          json_data = json.dumps(data)
          ws.send(json_data)
          time.sleep(1)
          if x == "[DONE]":
              time.sleep(1)
              data["text"] = "EXIT"
              ws.send(json.dumps(data))
              break
      ws.close()
  
file_path: ParlAI/parlai/chat_service/services/terminal_chat/client.py
imports: import json
  import uuid
  import websocket
  import time
  import threading
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 6 for calling a global function with example usage: _run(ws, id) without return types