code: func (m *kubeGenericRuntimeManager) toKubeContainer(c *runtimeapi.Container) (*kubecontainer.Container, error) {
  	if c == nil || c.Id == "" || c.Image == nil {
  		return nil, fmt.Errorf("unable to convert a nil pointer to a runtime container")
  	}
  
  	annotatedInfo := getContainerInfoFromAnnotations(c.Annotations)
  	return &kubecontainer.Container{
  		ID:      kubecontainer.ContainerID{Type: m.runtimeName, ID: c.Id},
  		Name:    c.GetMetadata().GetName(),
  		ImageID: c.ImageRef,
  		Image:   c.Image.Image,
  		Hash:    annotatedInfo.Hash,
  		State:   toKubeContainerState(c.State),
  	}, nil
  }
docs: // toKubeContainer converts runtimeapi.Container to kubecontainer.Container.