def METHOD_NAME(filepath):
    """Splits the webdataset into the basename and the extension"""
    dot_pos = filepath.find(".", filepath.rfind("/") + 1)
    return filepath[:dot_pos], filepath[dot_pos + 1:]