def list_workspaces(self, info=False):
        """List saved workspaces on this dataset.

        Args:
            info (False): whether to return info dicts describing each saved workspace
                rather than just their names

        Returns:
            a list of saved workspace names or info dicts
        """

        if info:
            return [
                {
                    f: getattr(workspace_doc, f)
                    for f in workspace_doc._EDITABLE_FIELDS
                }
                for workspace_doc in self._doc.get_workspaces()
            ]

        return [
            workspace_doc.name for workspace_doc in self._doc.get_workspaces()
        ]
List saved workspaces on this dataset.

        Args:
            info (False): whether to return info dicts describing each saved workspace
                rather than just their names

        Returns:
            a list of saved workspace names or info dicts
        
fiftyone/core/dataset.py