def METHOD_NAME(ext_context: "ExtOrchestrationContext", log_line: str):
    # exceptions as control flow, you love to see it
    try:
        message = json.loads(log_line)
        # need better message check
        if message.keys() == {"method", "params"}:
            ext_context.handle_message(message)
    except Exception:
        # move non-message logs in to stdout for compute log capture
        sys.stdout.writelines((log_line, "\n"))