def METHOD_NAME():
    """UT: nxos module:grains method - nxapi grains cache set"""
    with patch("salt.proxy.nxos.DEVICE_DETAILS", {"grains_cache": n9k_grains["nxos"]}):
        with patch(
            "salt.proxy.nxos.sendline",
            autospec=True,
            return_value=n9k_show_ver_list,
        ):
            result = nxos_proxy.grains()
            assert result == n9k_grains