def standardize():
    """
    return variant standarize function
    """

    def f(G, bim):
        G_out = standardize_snps(G)
        return G_out, bim

    return f
return variant standarize function