@staticmethod<EOL><INDENT>def _write_container_output(output_itr, stdout=None, stderr=None):<DEDENT>
<EOL>for frame_type, data in output_itr:<EOL><INDENT>if frame_type == Container._STDOUT_FRAME_TYPE and stdout:<EOL><INDENT>stdout.write(data)<EOL><DEDENT>elif frame_type == Container._STDERR_FRAME_TYPE and stderr:<EOL><INDENT>stderr.write(data)<EOL><DEDENT>else:<EOL><INDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>", frame_type, data)<EOL><DEDENT><DEDENT>
Based on the data returned from the Container output, via the iterator, write it to the appropriate streams

Parameters
----------
output_itr: Iterator
    Iterator returned by the Docker Attach command
stdout: samcli.lib.utils.stream_writer.StreamWriter, optional
    Stream writer to write stdout data from Container into
stderr: samcli.lib.utils.stream_writer.StreamWriter, optional
    Stream writer to write stderr data from the Container into