code: func CreateNodeNameToInfoMap(pods []*v1.Pod, nodes []*v1.Node) map[string]*NodeInfo {
  	nodeNameToInfo := make(map[string]*NodeInfo)
  	for _, pod := range pods {
  		nodeName := pod.Spec.NodeName
  		if _, ok := nodeNameToInfo[nodeName]; !ok {
  			nodeNameToInfo[nodeName] = NewNodeInfo()
  		}
  		nodeNameToInfo[nodeName].AddPod(pod)
  	}
  	imageExistenceMap := createImageExistenceMap(nodes)
  
  	for _, node := range nodes {
  		if _, ok := nodeNameToInfo[node.Name]; !ok {
  			nodeNameToInfo[node.Name] = NewNodeInfo()
  		}
  		nodeInfo := nodeNameToInfo[node.Name]
  		nodeInfo.SetNode(node)
  		nodeInfo.imageStates = getNodeImageStates(node, imageExistenceMap)
  	}
  	return nodeNameToInfo
  }
docs: // CreateNodeNameToInfoMap obtains a list of pods and pivots that list into a map where the keys are node names
  // and the values are the aggregated information for that node.