def dnac_get_modules(dnac_session, dnac_host, dnac_headers, device_id):
    """DNAC Modules of a Network Device"""
    tmp_url = 'https://%s/dna/intent/api/v1/' % dnac_host
    tmp_url = tmp_url + 'network-device/module?deviceId=%s' % device_id

    r = dnac_session.get(tmp_url,
                         verify=False,
                         headers=dnac_headers
                         )
    r.raise_for_status()
    # print('DNAC Response Body: ' + r.text)
    return r.json()['response']