async def container_dump(self, container, container_type, params=None):
await self.container_size(len(container), container_type, params)<EOL>elem_type = x.container_elem_type(container_type, params)<EOL>for idx, elem in enumerate(container):<EOL><INDENT>try:<EOL><INDENT>self.tracker.push_index(idx)<EOL>await self._dump_field(elem, elem_type, params[<NUM_LIT:1>:] if params else None)<EOL>self.tracker.pop()<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise helpers.ArchiveException(e, tracker=self.tracker) from e<EOL><DEDENT><DEDENT>
Dumps container of elements to the writer.

:param writer:
:param container:
:param container_type:
:param params:
:param field_archiver:
:return: