def __init__(self, root_collection, delegate=None, **kwargs):
        collection_class = create_class_with_framework(
            AgnosticCollection, self._framework, self.__module__)

        if not isinstance(root_collection, collection_class):
            raise TypeError(
                "First argument to MotorGridIn must be "
                "MotorCollection, not %r" % root_collection)

        self.io_loop = root_collection.get_io_loop()
        if delegate:
            # Short cut.
            self.delegate = delegate
        else:
            self.delegate = self.__delegate_class__(
                root_collection.delegate,
                **kwargs)
``pagesize_url`` updates pagesize in URL (and jumps to page 1).
dataset/ETHPy150Open mongodb/motor/motor/motor_gridfs.py/AgnosticGridIn.__init__--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/templatetags/test_pagination.py/FilterTest.test_pagesize_url