code: def nxos_api_rpc(commands,
                   method='cli',
                   **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Execute an arbitrary RPC request via the Nexus API.
  
      commands
          The RPC commands to be executed.
  
      method: ``cli``
          The type of the response, i.e., raw text (``cli_ascii``) or structured
          document (``cli``). Defaults to ``cli`` (structured data).
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' napalm.nxos_api_rpc 'show version'
      '''
      nxos_api_kwargs = pyeapi_nxos_api_args(**kwargs)
      return __salt__['nxos_api.rpc'](commands, method=method, **nxos_api_kwargsf nxos_api_rpc(commands,
                   method='cli',
                   **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Execute an arbitrary RPC request via the Nexus API.
  
      commands
          The RPC commands to be executed.
  
      method: ``cli``
          The type of the response, i.e., raw text (``cli_ascii``) or structured
          document (``cli``). Defaults to ``cli`` (structured data).
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' napalm.nxos_api_rpc 'show version'
      '''
      nxos_api_kwargs = pyeapi_nxos_api_args(**kwargs)
      return __salt__['nxos_api.rpc'](commands, method=method, **nxos_api_kwargs)
docs: .. versionadded:: 2019.2.0
  
      Execute an arbitrary RPC request via the Nexus API.
  
      commands
          The RPC commands to be executed.
  
      method: ``cli``
          The type of the response, i.e., raw text (``cli_ascii``) or structured
          document (``cli``). Defaults to ``cli`` (structured data).
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' napalm.nxos_api_rpc 'show version'