code: def linter_functions_from_filters(whitelist=None,
                                    blacklist=None):
      
      def _keyvalue_pair_if(dictionary, condition):
          """Return a key-value pair in dictionary if condition matched."""
          return {
              k: v for (k, v) in dictionary.items() if condition(k)
          }
  
      def _check_list(check_list, cond):
          """Return function testing against a list if the list exists."""
          def _check_against_list(key):
              """Return true if list exists and condition passes."""
              return cond(check_list, key) if check_list is not None else True
  
          return _check_against_list
  
      linter_functions = LINTER_FUNCTIONS
      linter_functions = _keyvalue_pair_if(linter_functions,
                                           _check_list(whitelist,
                                                       lambda l, k: k in l))
      linter_functions = _keyvalue_pair_if(linter_functions,
                                           _check_list(blacklist,
                                                       lambda l, k: k not in l))
  
      for code, linter_function in linter_functions.items():
          yield (code, linter_function)
docs: Yield tuples of _LinterFunction matching whitelist but not blacklist.