class_docstr: TCP socket handler backed tornado event loop.
  
  Parameters
  ----------
  sock : Socket
      The TCP socket, will set it to non-blocking mode.
class_docstr_tok: ["TCP","socket","handler","backed","tornado","event","loop",".","Parameters","--","--","--","--","--","sock",":","Socket","The","TCP","socket",",","will","set","it","to","non-blocking","mode","."]
docstr: Close the socket
docstr_tok: ["Close","the","socket"]
code: def close(self):
      """Close the socket"""
      if self._sock is not None:
          try:
              self._ioloop.remove_handler(self._sock.fileno())
              self._sock.close()
          except socket.error:
              pass
          self._sock = None
          self.on_close()
  
file_path: tvm/python/tvm/rpc/tornado_util.py
imports: import socket
  import errno
  from tornado import ioloop
label_desc: Use image node_id 3 for calling the TCPHandler obj's underlying member method code with example usage: obj.close() without return types