def with_sample(self, sample):
        """Sets the current sample so that subsequent calls to methods of this
        parser will return information from the given sample.

        Guaranteed to call :meth:`clear_sample` before setting the current
        sample.

        Args:
            sample: a sample
        """
        self.clear_sample()
        self._current_sample = sample
Sets the current sample so that subsequent calls to methods of this
        parser will return information from the given sample.

        Guaranteed to call :meth:`clear_sample` before setting the current
        sample.

        Args:
            sample: a sample
        
fiftyone/utils/data/parsers.py