<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _whitelist_blacklist(self, os_name):
        '''
        Determines if the OS should be ignored,
        depending on the whitelist-blacklist logic
        configured by the user.
        '''
        return napalm_logs.ext.check_whitelist_blacklist(os_name,
                                                         whitelist=self.device_whitelist,
                                                         blacklist=self.device_blacklist)