def get_duration(self, seconds):
duration = "<STR_LIT>"<EOL>minutes, seconds = divmod(seconds, <NUM_LIT>)<EOL>if minutes >= <NUM_LIT>:<EOL><INDENT>hours, minutes = divmod(minutes, <NUM_LIT>)<EOL>duration = "<STR_LIT>" % hours<EOL><DEDENT>duration += "<STR_LIT>" % (minutes, seconds)<EOL>return duration<EOL>
Transform duration into a human-readable form.