code: def add_batch(self, datapoints):
          
          num_datapoints_to_add = datapoints.shape[0]
          end_index = self.cur_index + num_datapoints_to_add
          if end_index <= self.num_datapoints:
              self.data[self.cur_index:end_index,...] = datapoints
              self.cur_index = end_index
docs: Adds a batch of datapoints to the tensor if room is available.