@contextmanager<EOL><INDENT>def _create(self, container):<DEDENT>
id = None<EOL>try:<EOL><INDENT>id = container.create()<EOL>yield id<EOL><DEDENT>finally:<EOL><INDENT>if id:<EOL><INDENT>container.delete()<EOL><DEDENT><DEDENT>
Create a container and delete it when execute leaves the given context

:param samcli.local.docker.container.Container container: Container to create
:yield: ID of the created container