parameters: (self,value)
docstring: Adds a value to the bag
docstring_summary: Adds a value to the bag
docstring_tokens: Adds a value to the bag
function: def add(self,value):
          '''
          Adds a value to the bag
          '''
          if self._unbounded:
              check_type(value,self.get_type())
              self._container.append(value)
          else:
              # first ensure that the bag is not full
              if len(self._container) == self._bound_2 - self._bound_1 + 1:
                  raise AssertionError('BAG is full. Impossible to add any more item')
              else:
                  check_type(value,self.get_type())
                  self._container.append(value)
function_tokens: def add ( self , value ) : if self . _unbounded : check_type ( value , self . get_type ( ) ) self . _container . append ( value ) else : # first ensure that the bag is not full if len ( self . _container ) == self . _bound_2 - self . _bound_1 + 1 : raise AssertionError ( 'BAG is full. Impossible to add any more item' ) else : check_type ( value , self . get_type ( ) ) self . _container . append ( value )