<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def rpc(commands, method='cli', **kwargs):
    '''
    Executes an RPC request over the NX-API.
    '''
    conn_args = nxos_device['conn_args']
    conn_args.update(kwargs)
    return __utils__['nxos_api.rpc'](commands, method=method, **conn_args)