def METHOD_NAME(data_file_name):
    f_ext = pathlib.Path(data_file_name).suffix
    if f_ext == ".pvd":
        return paraview.simple.PVDReader(FileName=data_file_name)
    else:
        return paraview.simple.ExodusIIReader(FileName=data_file_name)