def create_snapshot(self, name, tag):
source = self.local_location<EOL>logger.debug("<STR_LIT>" % (source, name))<EOL>if name and tag:<EOL><INDENT>output_tag = "<STR_LIT>".format(name, tag)<EOL><DEDENT>else:<EOL><INDENT>output_tag = name or tag<EOL><DEDENT>return self.__class__(repository=source, tag=output_tag)<EOL>
Create new instance of image with snaphot image (it is copied inside class constructuor)

:param name: str - name of image - not used now
:param tag: str - tag for image
:return: NspawnImage instance