def fetch_licenses(fw_conn):
    """Fetch Licenses

    Args:
        fw_conn (PanDevice): A panos object for device
    """
    try:
        fw_conn.fetch_licenses_from_license_server()
        print('Licenses retrieved from Palo Alto Networks')
        return True
    except:
        print('WARNING: Not able to retrieve licenses!')
        return False