docs: def sample_greedy(self):
          """        
          Sample a point in the leaf with the max progress.
          
          """    
          if self.leafnode:
              return self.sample_bounds()
          else:
              lp = self.lower.max_leaf_progress
              gp = self.greater.max_leaf_progress
              maxp = max(lp, gp)
          
              if self.sampling_mode['multiscale']:                
                  tp = self.progress        
                  if tp > maxp:
                      return self.sample_bounds()
              if gp == maxp:
                  sampling_mode = self.sampling_mode
                  sampling_mode['mode'] = 'greedy'
                  return self.greater.sample(sampling_mode=sampling_mode)
              else:
                  sampling_mode = self.sampling_mode
                  sampling_mode['mode'] = 'greedy'
                  return self.lower.sample(sampling_mode=sampling_mode)