code: func SandboxToContainerState(state runtimeapi.PodSandboxState) ContainerState {
  	switch state {
  	case runtimeapi.PodSandboxState_SANDBOX_READY:
  		return ContainerStateRunning
  	case runtimeapi.PodSandboxState_SANDBOX_NOTREADY:
  		return ContainerStateExited
  	}
  	return ContainerStateUnknown
  }
docs: // SandboxToContainerState converts runtimeapi.PodSandboxState to
  // kubecontainer.ContainerState.
  // This is only needed because we need to return sandboxes as if they were
  // kubecontainer.Containers to avoid substantial changes to PLEG.
  // TODO: Remove this once it becomes obsolete.