def get_name_and_tag(name):
    """
    Split the name if the image into tuple (name, tag).

    * name: (str) name of the image
    * **return:** tuple:
        - repository
        - tag
    """
    name_parts = name.split(':')
    if len(name_parts) == 2:
        repo = name_parts[0]
        tag = name_parts[1]
    else:
        repo = name
        tag = 'latest'
    return repo, tag
