def METHOD_NAME(duthost, nbr_name, state):
    isis_facts = duthost.isis_facts()["ansible_facts"]['isis_facts']
    if isis_instance not in list(isis_facts['neighbors'].keys()):
        logger.info("Failed to isis instance {} in dut {}.".format(isis_instance, duthost.hostname))
        return False
    if state == 'Up' and nbr_name not in list(isis_facts['neighbors'][isis_instance].keys()):
        return False
    if state == 'Up' and isis_facts['neighbors'][isis_instance][nbr_name]['state'] == 'Up':
        return True
    if state == 'Down' and nbr_name not in list(isis_facts['neighbors'][isis_instance].keys()):
        return True
    logger.info("Failed to nbr {} in dut {}.".format(nbr_name, duthost.hostname))
    return False