code: def process_raw_trace(raw_trace):
    
    trace = trace_events_pb2.Trace()
    trace.ParseFromString(raw_trace)
    return ''.join(trace_events_json.TraceEventsJsonStream(trace))
docs: Processes raw trace data and returns the UI data.