code: def empty(self, return_cards=False):
          
          cards = list(self.cards)
          self.cards = []
  
          if return_cards:
              return cards
docs: Empties the stack, removing all cards from it, and returns them.
  
          :arg bool return_cards:
              Whether or not to return the cards.
  
          :returns:
              If ``return_cards=True``, a list containing the cards removed
              from the Stack.