def get_newest_directory(path):
sub_dirs = [entry for entry in scandir(path) if entry.is_dir()]<EOL>sub_dirs.sort(key=lambda x: x.stat().st_mtime_ns)<EOL>print("<STR_LIT>" % "<STR_LIT>".join([p.path for p in sub_dirs]))<EOL>sub_dir = sub_dirs[-<NUM_LIT:1>]<EOL>return sub_dir.path<EOL>
Returns the newest directory path by mtime_ns