<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def image_by_tag(self, tag):
 """ Return image with given tag """

        if not tag:
            return None

        return next((image for image in self.images() if tag
                     in image['RepoTags']), None)