<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def create_figure(*fig_args, **fig_kwargs):
    '''Create a single figure.

    Args and Kwargs are passed to `matplotlib.figure.Figure`.
    
    This routine is provided in order to avoid usage of pyplot which
    is stateful and not thread safe. As drawing routines in tf-matplotlib
    are called from py-funcs in their respective thread, avoid usage
    of pyplot where possible.
    '''

    fig = Figure(*fig_args, **fig_kwargs)
    # Attach canvas
    FigureCanvas(fig)
    return fig