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 = "<STR_LIT>" if not tag else tag<EOL>self.d.tag(image=self.get_full_name(), repository=r, tag=t)<EOL>return DockerImage(r, tag=t)<EOL>
Apply additional tags to the image or even add a new name

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