def use_return_dict(self) -> bool:
        """
        `bool`: Whether or not return [`~utils.ModelOutput`] instead of tuples.
        """
        # If torchscript is set, force `return_dict=False` to avoid jit errors
        return self.return_dict and not self.torchscript

        `bool`: Whether or not return [`~utils.ModelOutput`] instead of tuples.
        
dpkd/transformers/src/transformers/configuration_utils.py