code: def next_object(self):
          
          grid_out = super(self.__class__, self).next_object()
          if grid_out:
              grid_out_class = create_class_with_framework(
                  AgnosticGridOut, self._framework, self.__module__)
  
              return grid_out_class(self.collection, delegate=grid_out)
          else:
              # Exhausted.
              return None
docs: Get next GridOut object from cursor.