<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _save_seaborn_chart(self, report, folderpath):
 """ Saves a png image of the seaborn chart """

        if folderpath is None:
            if self.imgs_path is None:
                self.err(self._save_seaborn_chart,
                         "Please set a path where to save images: ds.imgs_path"
                         " = '/my/path'")
                return
            path = self.imgs_path
        else:
            path = folderpath
        path = path + "/" + report["slug"] + ".png"
        try:
            try:
                # print("*** TRY", report["seaborn_chart"].figure.show())
                fig = report["seaborn_chart"].figure
                fig.savefig(path)
            except Exception as e:
                try:
                    fig = report["seaborn_chart"]
                    fig.savefig(path)
                except Exception:
                    plot = report["seaborn_chart"]
                    plot = plot.get_figure()
                    plot.savefig(path)
        except Exception as e:
            self.err(e, self._save_seaborn_chart, "Can not save Seaborn chart")
            return
        if self.autoprint is True:
            self.ok("Seaborn chart writen to " + path)