def dataset(self) -> Optional[DatasetRecord]:
        """Underlying dataset, if there is one."""
        if not self.name:
            return None
        return self.session.catalog.get_dataset(self.name)
Underlying dataset, if there is one.
src/datachain/lib/dc/datachain.py