class_docstr: A Thread for running a zmq Authenticator
  
  This is run in the background by ThreadAuthenticator
class_docstr_tok: ["A","Thread","for","running","a","zmq","Authenticator","This","is","run","in","the","background","by","ThreadAuthenticator"]
code: def _handle_pipe_message(self, msg: List[bytes]) -> bool:
      command = msg[0]
      self.log.debug("auth received API command %r", command)
  
      if command == b"TERMINATE":
          return True
  
      else:
          self.log.error("Invalid auth command from API: %r", command)
          self.pipe.send(b"ERROR")
  
      return False
  
file_path: catboost/contrib/python/pyzmq/py3/zmq/auth/thread.py
imports: import asyncio
  from threading import Event, Thread
  from typing import Any, List, Optional
  import zmq
  import zmq.asyncio
  from .base import Authenticator
label_desc: Use image node_id 3 for calling the AuthenticationThread obj's underlying member method code with example usage: obj._handle_pipe_message(msg) and returns: False, True