<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tag_exists(self, version):
 """Check if a tag has already been created with the name of the version. """

        for tag in self.available_tags():
            if tag == version:
                return True
        return False