code: func (imageState *ImageState) HasImageName(containerImageName string) bool {
  	for _, imageName := range imageState.Image.Names {
  		if imageName == containerImageName {
  			return true
  		}
  	}
  	return false
  }
docs: // HasImageName returns true if image state contains the containerImageName