def tag_(name, image, force=False):
 image_id = inspect_image(name)['Id']
 (repo_name, repo_tag) = _get_repo_tag(image)
 response = _client_wrapper('tag', image_id, repo_name, tag=repo_tag, force=force)
 _clear_context()
 return response

def tag_ ( name , image , force = False ) : image_id = inspect_image ( name ) [ 'Id' ] ( repo_name , repo_tag ) = _get_repo_tag ( image ) response = _client_wrapper ( 'tag' , image_id , repo_name , tag = repo_tag , force = force ) _clear_context ( ) return response
tag an image into a repository and return true .