parameters: (checkers)
return_statement: return predicate
docstring: Returns a method, which classifies the checker active or not,
      based on the received checker name list.
docstring_summary: Returns a method, which classifies the checker active or not,
      based on the received checker name list.
docstring_tokens: Returns a method which classifies the checker active or not based on the received checker name list .
function: def is_active(checkers):
      """ Returns a method, which classifies the checker active or not,
      based on the received checker name list. """
  
      def predicate(checker):
          """ Returns True if the given checker is active. """
  
          return any(pattern.match(checker) for pattern in predicate.patterns)
  
      predicate.patterns = [re.compile(r'^' + a + r'(\.|$)') for a in checkers]
      return predicate
function_tokens: def is_active ( checkers ) : def predicate ( checker ) : """ Returns True if the given checker is active. """ return any ( pattern . match ( checker ) for pattern in predicate . patterns ) predicate . patterns = [ re . compile ( r'^' + a + r'(\.|$)' ) for a in checkers ] return predicate