Raise an exception if input and output paths point to the same file.
paths (Union[str, PathLike]) –
Union
str
PathLike
None