import uuid


def rpc_wrapper(command, rpc_id=None):
    """Wrap a command in `rpc_request` with the given `rpc_id`."""
    return {
        'kind': 'rpc_request',
        'args': {'label': rpc_id or str(uuid.uuid4())},
        'body': [command]}