@document.command()<EOL>@click.argument('<STR_LIT>', nargs=-<NUM_LIT:1>)<EOL>@connection_option<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>', help='<STR_LIT>'.format(os.getcwd()))<EOL>def serialize_namespaces(namespaces, connection: str, path, directory):
from .definition_utils import export_namespaces<EOL>graph = from_lines(path, manager=connection)<EOL>export_namespaces(namespaces, graph, directory)<EOL>
Parse a BEL document then serializes the given namespaces (errors and all) to the given directory.