<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_stacktrace_locals(client, event):
 """ Removes local variables from any frames. :param client: an ElasticAPM client :param event: a transaction or error event :return: The modified event """

    func = lambda frame: frame.pop("vars", None)
    return _process_stack_frames(event, func)