def grid(self, name, **kwargs):
        """Defines a grid view as a :class:`View`."""
        grid = GridView(**kwargs)
        obj = Object()
        self.define_property(name, obj, view=grid)
        return obj
Defines a grid view as a :class:`View`.
fiftyone/operators/types.py