<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_image(self, image):
 """ Generates a tuple of the full image name and tag, that should be used when creating a new container. This implementation applies the following rules: * If the image name starts with ``/``, the following image name is returned. * If ``/`` is found anywhere else in the image name, it is assumed to be a repository-prefixed image and returned as it is. * Otherwise, if the given container map has a repository prefix set, this is prepended to the image name. * In any other case, the image name is not modified. Where there is a tag included in the ``image`` name, it is not modified. If it is not, the default tag from the container map, or ``latest`` is used. :param image: Image name. :type image: unicode | str :return: Image name, where applicable prefixed with a repository, and tag. :rtype: (unicode | str, unicode | str) """

        name, __, tag = image.rpartition(':')
        if not name:
            name, tag = tag, name
        if '/' in name:
            if name[0] == '/':
                repo_name = name[1:]
            else:
                repo_name = name
        else:
            default_prefix = resolve_value(self.repository)
            if default_prefix:
                repo_name = '{0}/{1}'.format(default_prefix, name)
            else:
                repo_name = name
        if tag:
            return repo_name, tag
        default_tag = resolve_value(self.default_tag)
        return repo_name, default_tag or 'latest'