Change the code into a function which takes the start time and the end time and returns the tempo.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence