def basename(path: Optional[str]) -> Optional[str]:
if path is not None:<EOL><INDENT>return os.path.basename(path)<EOL><DEDENT>
Returns the final component of a pathname and None if the argument is None