class_docstr: Base class for server nodes in a distributed cluster.
code: def stop_services(self):
      if hasattr(self, "http_application"):
          for application in self.http_application.applications:
              if hasattr(application, "stop") and callable(
                  application.stop
              ):
                  application.stop()
      for service in self.services.values():
          service.stop()
  
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 3 for calling the ServerNode obj's underlying member method code with example usage: obj.stop_services() without return types