<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_sampler(sampler):
 """ Dumps a sampler into its hdf5 database. """

    db = sampler.db
    fnode = tables.filenode.newnode(db._h5file, where='/', name='__sampler__')
    import pickle
    pickle.dump(sampler, fnode)