code: def _preallocate_samples(self):
          
          self.prealloc_samples_ = []
          for i in range(self.num_prealloc_samples_):
              self.prealloc_samples_.append(self.sample())
docs: Preallocate samples for faster adaptive sampling.