code: func MakeNextPodFunc(queue SchedulingQueue) func() *v1.Pod {
  	return func() *v1.Pod {
  		pod, err := queue.Pop()
  		if err == nil {
  			klog.V(4).Infof("About to try and schedule pod %v/%v", pod.Namespace, pod.Name)
  			return pod
  		}
  		klog.Errorf("Error while retrieving next pod from scheduling queue: %v", err)
  		return nil
  	}
  }
docs: // MakeNextPodFunc returns a function to retrieve the next pod from a given
  // scheduling queue