code: async def leave(self, *, force: bool = False) -> bool:
          
  
          params = {"force": force}
  
          await self.docker._query("swarm/leave", method="POST", params=params)
  
          return True
docs: Leave a swarm.
  
          Args:
              force: force to leave the swarm even if the node is a master