code: func imageToRuntimeAPIImage(image *dockertypes.ImageSummary) (*runtimeapi.Image, error) {
  	if image == nil {
  		return nil, fmt.Errorf("unable to convert a nil pointer to a runtime API image")
  	}
  
  	size := uint64(image.VirtualSize)
  	return &runtimeapi.Image{
  		Id:          image.ID,
  		RepoTags:    image.RepoTags,
  		RepoDigests: image.RepoDigests,
  		Size_:       size,
  	}, nil
  }
docs: // This file contains helper functions to convert docker API types to runtime
  // API types, or vice versa.