def METHOD_NAME(path, origpath, extra=None):
    title = path.removeprefix(origpath).removesuffix(".py")
    title = title.replace("/", ".").replace("\\", ".")
    if len(title):
        title = title.lstrip(".")
        return extra + "." + title
    else:
        return extra  # For empty, i.e., main folder