def _finalise_figure(fig, **kwargs):  
title = kwargs.get("<STR_LIT:title>") or None<EOL>show = kwargs.get("<STR_LIT>") or False<EOL>save = kwargs.get("<STR_LIT>") or False<EOL>savefile = kwargs.get("<STR_LIT>") or "<STR_LIT>"<EOL>return_fig = kwargs.get("<STR_LIT>") or False<EOL>if title:<EOL><INDENT>fig.suptitle(title)<EOL><DEDENT>if show:<EOL><INDENT>fig.show()<EOL><DEDENT>if save:<EOL><INDENT>fig.savefig(savefile)<EOL>print("<STR_LIT>".format(savefile))<EOL><DEDENT>if return_fig:<EOL><INDENT>return fig<EOL><DEDENT>return None<EOL>
Internal function to wrap up a figure.

Possible arguments:
:type title: str
:type show: bool
:type save: bool
:type savefile: str
:type return_figure: bool