code: def insert(self, index, item):
          
          if not self:
              list.append(self, item)
          elif item.__class__ == self[0].__class__:
              list.insert(self, index, item)
          else:
              raise exceptions.WrongListItemType(item.__class__.__name__,
                                                 self[0].__class__.__name__)
docs: Insert an item at the specified index.
  
          Args:
              index (int): Position to insert the item.
              item: Item to be inserted.
  
          Raises:
              :exc:`~.exceptions.WrongListItemType`: If an item has a different
                  type than the first item to be stored.