code: def get_server(server_class, serial_port):
      
      s = server_class()
      s.serial_port = serial_port
  
      s.route_map = Map()
      s.route = MethodType(route, s)
  
      return s
docs: Return instance of :param:`server_class` with :param:`request_handler`
      bound to it.
      This method also binds a :func:`route` method to the server instance.
          >>> server = get_server(TcpServer, ('localhost', 502), RequestHandler)
          >>> server.serve_forever()
      :param server_class: (sub)Class of :class:`socketserver.BaseServer`.
      :param request_handler_class: (sub)Class of
          :class:`umodbus.server.RequestHandler`.
      :return: Instance of :param:`server_class`.