def set_description(self, description: dict | pd.Series, overwrite: bool = False):
        """Update (add or overwrite) the dataset description.

        Parameters
        ----------
        description: dict | pd.Series
            Description in the form key: value.
        overwrite: bool
            Has to be True if a key in description already exists in the
            dataset description.
        """
        description = _create_description(description)
        for key, value in description.items():
            # if the key is already in the existing description, drop it
            if self._description is not None and key in self._description:
                assert overwrite, (
                    f"'{key}' already in description. Please "
                    f"rename or set overwrite to True."
                )
                self._description.pop(key)
        if self._description is None:
            self._description = description
        else:
            self._description = pd.concat([self.description, description])
Update (add or overwrite) the dataset description.

        Parameters
        ----------
        description: dict | pd.Series
            Description in the form key: value.
        overwrite: bool
            Has to be True if a key in description already exists in the
            dataset description.
        
braindecode/datasets/base.py