def save(self, path=None):
        """
        Save the Ludwig model.

        :param path: the path to save to
        :return:
        """
        if not path:
            print('WARNING: Ludwig Policy model not saved (no path provided).')
        else:
            # If the directory does not exist, create it
            if not os.path.exists(os.path.dirname(path)):
                os.makedirs(os.path.dirname(path), exist_ok=True)

            self.model.save(path)

        Save the Ludwig model.

        :param path: the path to save to
        :return:
        
plato/agent/component/dialogue_policy/deep_learning/ludwig_policy.py