def remove_extension(template):
    return template[:-len('.template')]
Given a filename or path of a template file, return the same without the
dataset/ETHPy150Open ClusterHQ/flocker/flocker/docs/version_extensions.py/remove_extension