import os.path

root, ext = os.path.splitext(r"C:\work\tmp.txt")
print(root, ext)

dffd3def800b685f85f85f4d4f50e1687ac4d2c6
<mask token>

<mask token>
print(root, ext)

<mask token>
root, ext = os.path.splitext('C:\\work\\tmp.txt')
print(root, ext)

import os.path
root, ext = os.path.splitext('C:\\work\\tmp.txt')
print(root, ext)

import os.path

root, ext = os.path.splitext(r"C:\work\tmp.txt")
print(root, ext)
