def validate_args(args):
if args.list_embedding_sources:<EOL><INDENT>print('<STR_LIT>'.format(<EOL>args.embedding_name))<EOL>print('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>if args.embedding_name not in nlp.embedding.list_sources().keys():<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>'.format('<STR_LIT:U+002CU+0020>'.join(<EOL>nlp.embedding.list_sources().keys())))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>print('<STR_LIT:U+0020>'.join(nlp.embedding.list_sources()[args.embedding_name]))<EOL>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>if not (args.embedding_path or args.embedding_name):<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>print('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if args.embedding_name and not args.embedding_source:<EOL><INDENT>print('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>print(args)<EOL>
Validate provided arguments and act on --help.