code: def get_node_details(self, node_id: list) -> dict:
          
          # Raise an exception if we are not a manager
          if not self._manager:
              raise RuntimeError('Only the Swarm manager node can '
                                 'retrieve node details.')
  
          node = self._client.nodes.get(node_id)
          return node.attrs
docs: Get details of a node.
  
          Only the manager nodes can retrieve details of a node
  
          Args:
              node_id (list): List of node ID
  
          Returns:
              dict, details of the node