def extract(fileobj, keywords, comment_tags, options):
    encoding = options.get('input_encoding', options.get('encoding', None))

    template_node = lexer.Lexer(fileobj.read(),
                                input_encoding=encoding).parse()
    for extracted in extract_nodes(template_node.get_children(),
                                   keywords, comment_tags, options):
        yield extracted
Write a Agilent/Varian procpar file from a dictionary
dataset/ETHPy150Open sfstpala/Victory-Chat/mako/ext/babelplugin.py/extract--crossover with--dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/varian.py/write_procpar