def METHOD_NAME(path):
    try:
        file_name = os.path.basename(path)
        extensions = re.findall(r'\.([^.]+)', file_name)
        ext = '.'.join(extensions)
        name = file_name.replace(".%s" % ext, '')
        return name, ext
    except Exception:
        pass
    return None