code: func (d *stiDocker) GetLabels(name string) (map[string]string, error) {
  	name = getImageName(name)
  	resp, err := d.InspectImage(name)
  	if err != nil {
  		glog.V(4).Infof("error inspecting image %s: %v", name, err)
  		return nil, s2ierr.NewInspectImageError(name, err)
  	}
  	return resp.Config.Labels, nil
  }
docs: // GetLabels retrieves the labels of the given image.