def join_paths(path1: Optional[str], path2: Optional[str]) -> Optional[str]:
if path1 is not None and path2 is not None:<EOL><INDENT>return os.path.join(path1, path2)<EOL><DEDENT>
Joins two paths if neither of them is None