Write a function which parses a string describing a phone log, calculates how much to charge for each call, and includes test cases as needed.
Implement def calculate_call_charges(log):; log contains newline-separated records in the form HH:MM:SS, phone_number, where the first field is the call duration, and return a list of dictionaries in input order.
Charge calls of 5 minutes or less at 3 cents per second; longer calls cost 150 cents for each started 5-minute block. Ignore blank lines, preserve the trimmed phone number, and assume nonblank records are valid.
def calculate_call_charges(log):