<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_multiple_to_queue(self, items, container=None):
 """Add a sequence of items to the queue. Args: items (list):
 A sequence of items to the be added to the queue container (DidlObject, optional):
 A container object which includes the items. """

        if container is not None:
            container_uri = container.resources[0].uri
            container_metadata = to_didl_string(container)
        else:
            container_uri = ''  # Sonos seems to accept this as well
            container_metadata = ''  # pylint: disable=redefined-variable-type

        chunk_size = 16  # With each request, we can only add 16 items
        item_list = list(items)  # List for slicing
        for index in range(0, len(item_list), chunk_size):
            chunk = item_list[index:index + chunk_size]
            uris = ' '.join([item.resources[0].uri for item in chunk])
            uri_metadata = ' '.join([to_didl_string(item) for item in chunk])
            self.avTransport.AddMultipleURIsToQueue([
                ('InstanceID', 0),
                ('UpdateID', 0),
                ('NumberOfURIs', len(chunk)),
                ('EnqueuedURIs', uris),
                ('EnqueuedURIsMetaData', uri_metadata),
                ('ContainerURI', container_uri),
                ('ContainerMetaData', container_metadata),
                ('DesiredFirstTrackNumberEnqueued', 0),
                ('EnqueueAsNext', 0)
            ])