class_docstr: Base class for server nodes in a distributed cluster.
code: def _setup_logging(self, logger: logging.Logger) -> None:
      self._deque_handler = DequeHandler(
          n=dask.config.get("distributed.admin.log-length")
      )
      self._deque_handler.setFormatter(
          logging.Formatter(
              dask.config.get("distributed.admin.log-format")
          )
      )
      logger.addHandler(self._deque_handler)
      weakref.finalize(self, logger.removeHandler, self._deque_handler)
  
imports: from __future__ import annotations
  import logging
  import ssl
  import warnings
  import weakref
  from contextlib import suppress
  import tlz
  from tornado.httpserver import HTTPServer
  import dask
  from distributed.comm import get_address_host, get_tcp_server_addresses
  from distributed.core import Server
  from distributed.http.routing import RoutingApplication
  from distributed.utils import DequeHandler, clean_dashboard_address
  from distributed.versions import get_versions
label_desc: Use image node_id 5 for calling the ServerNode obj's underlying member method code with example usage: obj._setup_logging(logger) without return types