<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_name_history( self, name, offset=None, count=None, reverse=False):
 """ Get the historic states for a name, grouped by block height. """

        cur = self.db.cursor()
        name_hist = namedb_get_history( cur, name, offset=offset, count=count, reverse=reverse )
        return name_hist