def METHOD_NAME(self, fileobj):
    template_node = lexer.Lexer(
        fileobj.read(), input_encoding=self.config["encoding"]
    ).parse()
    yield from self.extract_nodes(template_node.get_children())