def samples(self) -> DataFrame:
        """Get the samples DataFrame.

        Returns:
            DataFrame: DataFrame containing dataset samples.

        Raises:
            RuntimeError: If samples DataFrame has not been set.
        """
        if self._samples is None:
            msg = (
                "Dataset does not have a samples dataframe. Ensure that a dataframe has "
                "been assigned to `dataset.samples`."
            )
            raise RuntimeError(msg)
        return self._samples
Get the samples DataFrame.

        Returns:
            DataFrame: DataFrame containing dataset samples.

        Raises:
            RuntimeError: If samples DataFrame has not been set.
        
src/anomalib/data/datasets/base/image.py