code: def insert_list(self, cards, indice=-1):
          
          self_size = len(self.cards)
  
          if indice in [0, -1]:
              if indice == -1:
                  self.cards += cards
              else:
                  self.cards.extendleft(cards)
          elif indice != self_size:
              half_x, half_y = self.split(indice)
              self.cards = list(half_x.cards) + list(cards) + list(half_y.cards)
docs: Insert a list of given cards into the stack at a given indice.
  
          :arg list cards:
              The list of cards to insert into the stack.
          :arg int indice:
              Where to insert the given cards.