def tag_image(self, repository=None, tag=None):
if not (repository or tag):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>r = repository or self.name<EOL>t = tag or "<STR_LIT>"<EOL>identifier = self._id or self.get_id()<EOL>run_cmd(["<STR_LIT>", "<STR_LIT>", identifier, "<STR_LIT>" % (r, t)])<EOL>return PodmanImage(r, tag=t)<EOL>
Apply additional tags to the image or a new name
>> podman tag image[:tag] target-name[:tag]

:param repository: str, see constructor
:param tag: str, see constructor
:return: instance of PodmanImage