def METHOD_NAME(self, statement):
    statement_type = statement[0][0].type
    is_library = statement_type == Token.LIBRARY
    if is_library:
        return is_library, True
    return is_library, statement_type in self.TOKENS_WITH_ARGUMENTS