def METHOD_NAME(log_data):
    # Sample data contains entire game API request/response, but log clients will trim data down
    # to the keys specified in `accepted_api_params`
    command = log_data['data']['request']['command']
    requested_data = accepted_api_params[command]
    trimmed_data = {
        'data': {
            'request': {},
            'response': {},
            '__version': accepted_api_params['__version'],
        }
    }
    for key in requested_data['request']:
        trimmed_data['data']['request'][key] = log_data['data']['request'].get(key)
    for key in requested_data['response']:
        trimmed_data['data']['response'][key] = log_data['data']['response'].get(key)
    return trimmed_data