@namespace.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.File('<STR_LIT:r>'), default=sys.stdin, help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.File('<STR_LIT:w>'), default=sys.stdout,<EOL>help="<STR_LIT>")<EOL>def convert_to_annotation(file, output):
resource = parse_bel_resource(file)<EOL>write_annotation(<EOL>keyword=resource['<STR_LIT>']['<STR_LIT>'],<EOL>values={k: '<STR_LIT>' for k in resource['<STR_LIT>']},<EOL>citation_name=resource['<STR_LIT>']['<STR_LIT>'],<EOL>description=resource['<STR_LIT>']['<STR_LIT>'],<EOL>file=output,<EOL>)<EOL>
Convert a namespace file to an annotation file.