def __init__(self, collection, **kwargs):
        """Can be created with collection and kwargs like a PyMongo GridIn,
        or with a 'delegate' keyword arg, where delegate is a MotorGridIn.
        """
        delegate = kwargs.pop('delegate', None)
        if delegate:
            self.delegate = delegate
        else:
            if not isinstance(collection, Collection):
                raise TypeError(
                    repr(collection) % "Expected Collection, got %s")

            self.delegate = motor.MotorGridIn(collection.delegate, **kwargs)
dataset/ETHPy150Open mongodb/motor/synchro/__init__.py/GridIn.__init__/swapped operands of `%`