def validate_args(args):
if not os.path.isdir(args.directory):<EOL><INDENT>print("<STR_LIT>".format(args.directory))<EOL>sys.exit(<NUM_LIT:5>)<EOL><DEDENT>return args<EOL>
Call all required validation functions
:param args:
:return: