<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset_sequence(app_label):
 """ Reset the primary key sequence for the tables in an application. This is necessary if any local edits have happened to the table. """


    puts("Resetting primary key sequence for {0}".format(app_label))

    cursor = connection.cursor()
    cmd = get_reset_command(app_label)
    cursor.execute(cmd)