def current_sample(self):
        """The current sample.

        Raises:
            ValueError: if there is no current sample
        """
        if self._current_sample is None:
            raise ValueError(
                "No current sample. You must call `with_sample()` before "
                "trying to get information about a sample"
            )

        return self._current_sample
The current sample.

        Raises:
            ValueError: if there is no current sample
        
fiftyone/utils/data/parsers.py