def tree(self, name, **kwargs):
        """Defines a tree property on the object.
        Args:
            name: the name of the property

        Returns:
            a :class:`Tree`
        """
        tree_selection_view = TreeSelectionView(**kwargs)
        tree_type = List(String())
        self.define_property(
            name, tree_type, view=tree_selection_view, **kwargs
        )
        return tree_type
Defines a tree property on the object.
        Args:
            name: the name of the property

        Returns:
            a :class:`Tree`
        
fiftyone/operators/types.py