code: def match_keyword(token, keywords):
      
      if not token:
          return False
      if not token.is_keyword:
          return False
  
      return token.value.upper() in keywords
docs: Checks if the given token represents one of the given keywords