code: def batch(self):
          
          _batch = []
          yield _batch
          if _batch:
              new_part = super(type(self), type(self)).empty()
              new_part._from_entities(_batch, _batch[0].__dimension__)
              self.concat(new_part, inplace=True)
docs: Batch initialization